Skip to content

Commit

Permalink
Fix logging spec expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jun 21, 2015
1 parent ba7b465 commit 32d9567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/mongoid_spec.rb
Expand Up @@ -48,7 +48,7 @@
Band.all.entries
end

pending "disconnects from all active clients" do
it "disconnects from all active clients" do
clients.each do |client|
expect(client.cluster).to receive(:disconnect!).and_call_original
end
Expand Down
2 changes: 1 addition & 1 deletion spec/support/expectations.rb
Expand Up @@ -2,7 +2,7 @@ module Mongoid
module Expectations

def expect_query(number)
expect(Mongo::Logger).to receive(:debug).exactly(number).times
expect(Mongo::Logger).to receive(:allow?).with(:debug).exactly(number).times.and_call_original
yield
end

Expand Down

0 comments on commit 32d9567

Please sign in to comment.