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: b7f240f1e4f4b471bf54d1afef5628722ce38185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

require "spec_helper"

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

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