Welcome to mirror list, hosted at ThFree Co, Russian Federation.

recurring_pod_check_spec.rb « workers « spec - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f5ed5e65aad44def31e271dafdfc21b59c22dcd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

describe Workers::RecurringPodCheck do
  before do
    @pods = (0..4).map do
      FactoryGirl.build(:pod).tap { |pod|
        expect(pod).to receive(:test_connection!)
      }
    end
    allow(Pod).to receive(:find_in_batches).and_yield(@pods)
  end

  it "performs a connection test on all existing pods" do
    Workers::RecurringPodCheck.new.perform
  end
end