Skip to content

Commit

Permalink
minor: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
banker committed Sep 26, 2011
1 parent 9eaf6b7 commit 018da90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lib/mongo/repl_set_connection.rb
Expand Up @@ -164,7 +164,7 @@ def initialize(*args)
end

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}>"
end

Expand Down
4 changes: 0 additions & 4 deletions test/unit/connection_test.rb
Expand Up @@ -71,10 +71,6 @@ class ConnectionTest < Test::Unit::TestCase
assert_raise MongoArgumentError do
Connection.from_uri("mongodb://localhost:abc", :connect => false)
end

assert_raise MongoArgumentError do
Connection.from_uri("mongodb://localhost:27017, my.db.com:27018, ", :connect => false)
end
end

should "require all of username, if password and db are specified" do
Expand Down

0 comments on commit 018da90

Please sign in to comment.