minor: test fix
This commit is contained in:
parent
1c982aa7a7
commit
a039f813a7
|
@ -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'
|
||||
|
||||
cons = []
|
||||
|
|
|
@ -44,8 +44,8 @@ class TestConnection < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_replica_set_connection_name
|
||||
assert_raise_error(Mongo::ReplicaSetConnectionError, "replica-set-foo") do
|
||||
standard_connection(:rs_name => "replica-set-foo-wrong")
|
||||
assert_raise Mongo::ReplicaSetConnectionError do
|
||||
standard_connection(:rs_name => "replica-set-wrong-name")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue