diff --git a/test/slave_connection_test.rb b/test/slave_connection_test.rb index 17c4381..b037411 100644 --- a/test/slave_connection_test.rb +++ b/test/slave_connection_test.rb @@ -9,7 +9,7 @@ class SlaveConnectionTest < Test::Unit::TestCase @@port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT conn = Connection.new(@@host, @@port, :slave_ok => true) response = conn['admin'].command(:ismaster => 1) - Mongo::Support.ok?(response['ok']) && response['ismaster'] != 1 + Mongo::Support.ok?(response) && response['ismaster'] != 1 end if self.connect_to_slave