diff --git a/lib/spec/api_constraints_spec.rb b/lib/spec/api_constraints_spec.rb index 4c780d8..ad34d5e 100644 --- a/lib/spec/api_constraints_spec.rb +++ b/lib/spec/api_constraints_spec.rb @@ -7,13 +7,13 @@ describe ApiConstraints do describe "matches?" do it "returns true when the version matches the 'Accept' header" do - request = double(host: 'api.nebapi.dev', + request = double(host: 'api.nebapi.local', headers: {"Accept" => "application/vnd.nebapi.v1"}) expect(api_constraints_v1.matches?(request)).to eq(true) end it "returns the default version when 'default' option is specified" do - request = double(host: 'api.nebapi.dev') + request = double(host: 'api.nebapi.local') expect(api_constraints_v2.matches?(request)).to eq(true) end end