minor: test fix

This commit is contained in:
Kyle Banker 2010-11-29 13:56:11 -05:00
parent 1c982aa7a7
commit a039f813a7
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# This code assumes a running replica set with at least on node at localhost:27017. # This code assumes a running replica set with at least one node at localhost:27017.
require 'mongo' require 'mongo'
cons = [] cons = []

View File

@ -44,8 +44,8 @@ class TestConnection < Test::Unit::TestCase
end end
def test_replica_set_connection_name def test_replica_set_connection_name
assert_raise_error(Mongo::ReplicaSetConnectionError, "replica-set-foo") do assert_raise Mongo::ReplicaSetConnectionError do
standard_connection(:rs_name => "replica-set-foo-wrong") standard_connection(:rs_name => "replica-set-wrong-name")
end end
end end