From 32d95677505ecca202546a3ca7b9064e8aacc043 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Sun, 21 Jun 2015 13:34:19 +0200 Subject: [PATCH] Fix logging spec expectations --- spec/mongoid_spec.rb | 2 +- spec/support/expectations.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/mongoid_spec.rb b/spec/mongoid_spec.rb index aa13fc0923..b03eaef2d7 100644 --- a/spec/mongoid_spec.rb +++ b/spec/mongoid_spec.rb @@ -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 diff --git a/spec/support/expectations.rb b/spec/support/expectations.rb index 2e545515cf..470316ce02 100644 --- a/spec/support/expectations.rb +++ b/spec/support/expectations.rb @@ -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