mirror of
https://github.com/plashchynski/crono.git
synced 2026-06-11 09:22:46 +02:00
Cleanup and get rspec to run again
This commit is contained in:
+2
-2
@@ -45,7 +45,7 @@ describe Crono::Engine do
|
||||
|
||||
describe '/job/:id' do
|
||||
it 'should show job log' do
|
||||
get "/job/#{@test_job.id}"
|
||||
get "/jobs/#{@test_job.id}"
|
||||
expect(last_response).to be_ok
|
||||
expect(last_response.body).to include @test_job_id
|
||||
expect(last_response.body).to include @test_job_log
|
||||
@@ -54,7 +54,7 @@ describe Crono::Engine do
|
||||
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}"
|
||||
get "/jobs/#{@test_job.id}"
|
||||
expect(last_response.body).to include message
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user