spec/unit/connection_spec.rb in couchrest_model-2.0.4 vs spec/unit/connection_spec.rb in couchrest_model-2.1.0.beta1

- old
+ new

@@ -88,11 +88,11 @@ end it "should provide a server object" do @class.server.should be_a(CouchRest::Server) end it "should provide a server with default config" do - @class.server.uri.should eql("http://localhost:5984") + @class.server.uri.to_s.should eql("http://localhost:5984") end it "should allow the configuration to be overwritten" do @class.connection = { :protocol => "https", :host => "127.0.0.1", @@ -100,11 +100,11 @@ :prefix => 'sample', :suffix => 'test', :username => 'foo', :password => 'bar' } - @class.server.uri.should eql("https://foo:bar@127.0.0.1:5985") + @class.server.uri.to_s.should eql("https://foo:bar@127.0.0.1:5985") end end describe ".prepare_database" do @@ -152,10 +152,10 @@ end it "should load file if available" do @class.connection_config_file = File.join(FIXTURE_PATH, 'config', 'couchdb.yml') hash = @class.send(:load_connection_config_file) hash[:development].should_not be_nil - @class.server.uri.should eql("https://test:user@sample.cloudant.com:443") + @class.server.uri.to_s.should eql("https://test:user@sample.cloudant.com") end end end