diaspora/spec/workers/recurring_pod_check_spec.rb
Florian Staudacher 738413c65f fix some issues with pod-checking
add tooltips in the frontend
fix a JS problem with empty hostname
use `find_in_batches` correctly
add a migration to clean up the pods table + unique index on hostname
2015-08-30 18:50:34 +02:00

17 lines
388 B
Ruby

require "spec_helper"
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