minor: test fix
This commit is contained in:
parent
9eaf6b7b83
commit
018da9049c
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue