From a039f813a7959ee23417c1b02c3caf1dd0ff90e0 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 29 Nov 2010 13:56:11 -0500 Subject: [PATCH] minor: test fix --- docs/examples/replica_set.rb | 2 +- test/connection_test.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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