mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Dashboard warning when clockwork doesn't seem to be running
This commit is contained in:
parent
40962c84ca
commit
8cc7f3c20b
6 changed files with 78 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue