diff --git a/docs/examples/replica_set.rb b/docs/examples/replica_set.rb index 6ddfd1a..deb0273 100644 --- a/docs/examples/replica_set.rb +++ b/docs/examples/replica_set.rb @@ -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 = [] diff --git a/test/connection_test.rb b/test/connection_test.rb index 83cc9ed..d546955 100644 --- a/test/connection_test.rb +++ b/test/connection_test.rb @@ -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