mirror of
https://github.com/plashchynski/crono.git
synced 2026-07-10 14:52:49 +02:00
Fix specs
This commit is contained in:
+2
-2
@@ -25,13 +25,13 @@ describe Crono::Web do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'should show a error mark when a job is unhealthy' do
|
it 'should show a error mark when a job is unhealthy' do
|
||||||
@test_job.update(healthy: false)
|
@test_job.update(healthy: false, last_performed_at: 10.minutes.ago)
|
||||||
get '/'
|
get '/'
|
||||||
expect(last_response.body).to include 'Error'
|
expect(last_response.body).to include 'Error'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should show a success mark when a job is healthy' do
|
it 'should show a success mark when a job is healthy' do
|
||||||
@test_job.update(healthy: true)
|
@test_job.update(healthy: true, last_performed_at: 10.minutes.ago)
|
||||||
get '/'
|
get '/'
|
||||||
expect(last_response.body).to include 'Success'
|
expect(last_response.body).to include 'Success'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user