Replace Clockwork with Sidetiq

This commit is contained in:
Stephan Kaag
2013-08-07 19:25:05 +02:00
parent aec929b184
commit a6b4b5dbf2
44 changed files with 106 additions and 299 deletions

View File

@@ -54,20 +54,6 @@ describe AdminDashboardData do
end
end
describe 'clockwork_check' do
subject { AdminDashboardData.new.clockwork_check }
it 'returns nil when clockwork is running' do
Jobs::ClockworkHeartbeat.stubs(:is_clockwork_running?).returns(true)
subject.should be_nil
end
it 'returns a string when clockwork is not running' do
Jobs::ClockworkHeartbeat.stubs(:is_clockwork_running?).returns(false)
subject.should_not be_nil
end
end
describe 'sidekiq_check' do
subject { AdminDashboardData.new.sidekiq_check }