diff options
Diffstat (limited to 'spec/workers/recurring_pod_check_spec.rb')
-rw-r--r-- | spec/workers/recurring_pod_check_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/recurring_pod_check_spec.rb b/spec/workers/recurring_pod_check_spec.rb index b7f240f1e..fec3b7f24 100644 --- a/spec/workers/recurring_pod_check_spec.rb +++ b/spec/workers/recurring_pod_check_spec.rb @@ -4,11 +4,11 @@ require "spec_helper" describe Workers::RecurringPodCheck do before do @pods = (0..4).map do - FactoryGirl.create(:pod).tap { |pod| + FactoryGirl.build(:pod).tap { |pod| expect(pod).to receive(:test_connection!) } end - allow(Pod).to receive(:find_in_batches) { @pods } + allow(Pod).to receive(:find_in_batches).and_yield(@pods) end it "performs a connection test on all existing pods" do |