minor: test fix

This commit is contained in:
Kyle Banker 2011-09-26 17:48:17 -04:00
parent 9eaf6b7b83
commit 018da9049c
2 changed files with 1 additions and 5 deletions

View File

@ -164,7 +164,7 @@ module Mongo
end end
def inspect def inspect
"<Mongo::ReplSetConnection:0x#{self.object_id.to_s(16)} @seeds=#{@seeds} " + "<Mongo::ReplSetConnection:0x#{self.object_id.to_s(16)} @seeds=#{@seeds.inspect} " +
"@connected=#{@connected}>" "@connected=#{@connected}>"
end end

View File

@ -71,10 +71,6 @@ class ConnectionTest < Test::Unit::TestCase
assert_raise MongoArgumentError do assert_raise MongoArgumentError do
Connection.from_uri("mongodb://localhost:abc", :connect => false) Connection.from_uri("mongodb://localhost:abc", :connect => false)
end end
assert_raise MongoArgumentError do
Connection.from_uri("mongodb://localhost:27017, my.db.com:27018, ", :connect => false)
end
end end
should "require all of username, if password and db are specified" do should "require all of username, if password and db are specified" do