Skip to content
Browse files

minor: accidentally called a duck and alligator

  • Loading branch information...
1 parent 6a96bc0 commit 9c470f7abb75acf617d468025fe8b9ea8f0eb5c3 @brandonblack brandonblack committed Nov 19, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/unit/collection_test.rb
View
8 test/unit/collection_test.rb
@@ -73,10 +73,10 @@ class CollectionTest < Test::Unit::TestCase
end
should "send safe update message with legacy" do
- @client = Connection.new('localhost', 27017, :logger => @logger, :safe => true, :connect => false)
- @db = @client['testing']
- @coll = @db.collection('books')
- @client.expects(:send_message_with_gle).with do |op, msg, db_name, log|
+ @connection = Connection.new('localhost', 27017, :logger => @logger, :safe => true, :connect => false)
+ @db = @connection['testing']
+ @coll = @db.collection('books')
+ @connection.expects(:send_message_with_gle).with do |op, msg, db_name, log|
op == 2001
end
@coll.expects(:log_operation).with do |name, payload|

1 comment on commit 9c470f7

@brandonblack

*an alligator

Please sign in to comment.
Something went wrong with that request. Please try again.