mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Dashboard warning when clockwork doesn't seem to be running
This commit is contained in:
@ -54,4 +54,18 @@ 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
|
||||
|
||||
end
|
Reference in New Issue
Block a user