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
17 lines
388 B
Ruby
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
|