This commit is contained in:
Dzmitry Plashchynski
2015-03-14 03:26:32 +02:00
parent 8a89a9a8eb
commit 1af691ef24
6 changed files with 23 additions and 19 deletions

View File

@@ -39,9 +39,10 @@ describe Crono::Web do
end
it 'should show a message about the unhealthy job' do
message = 'An error occurs during the last execution of this job'
@test_job.update(healthy: false)
get "/job/#{@test_job.id}"
expect(last_response.body).to include 'An error occurs during the last execution of this job'
expect(last_response.body).to include message
end
end
end