From ba29517a26316b55f6da913138a6e073b343e2cf Mon Sep 17 00:00:00 2001 From: mellownebula Date: Thu, 11 Aug 2016 18:12:57 +0930 Subject: [PATCH] Add subdomain & first endpoint --- lib/spec/api_constraints_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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