spec/http_service_spec.rb in expedia-0.0.4 vs spec/http_service_spec.rb in expedia-0.0.5

- old
+ new

@@ -1,11 +1,11 @@ require 'spec_helper' describe "Expedia::HTTPService" do - it "has an DEVELOPMENT_SERVER Constant" do - Expedia::HTTPService.constants.should include(:DEVELOPMENT_SERVER) + it "has an DEVELOPMENT_API_SERVER Constant" do + Expedia::HTTPService.constants.should include(:DEVELOPMENT_API_SERVER) end it "has an API_SERVER Constant" do Expedia::HTTPService.constants.should include(:API_SERVER) end @@ -30,15 +30,15 @@ it "return server with https when options[:use_ssl]" do Expedia::HTTPService.server( {:use_ssl => true }).should eql "https://#{Expedia::HTTPService::API_SERVER}" end - it "return DEVELOPMENT_SERVER server when cid is 55505" do + it "return DEVELOPMENT_API_SERVER server when cid is 55505" do Expedia.stub(:cid).and_return(55505) - Expedia::HTTPService.server.should =~ Regexp.new(Expedia::HTTPService::DEVELOPMENT_SERVER) + Expedia::HTTPService.server.should =~ Regexp.new(Expedia::HTTPService::DEVELOPMENT_API_SERVER) Expedia.stub(:cid).and_return("55505") - Expedia::HTTPService.server.should =~ Regexp.new(Expedia::HTTPService::DEVELOPMENT_SERVER) + Expedia::HTTPService.server.should =~ Regexp.new(Expedia::HTTPService::DEVELOPMENT_API_SERVER) end end describe "signature and common_parameters" do