Fix specs

This commit is contained in:
Dzmitry Plashchynski
2015-04-13 16:45:38 +03:00
parent 1a5fd351b4
commit c2445d831b

View File

@@ -25,13 +25,13 @@ describe Crono::Web do
end
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 '/'
expect(last_response.body).to include 'Error'
end
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 '/'
expect(last_response.body).to include 'Success'
end