Cleanup and get rspec to run again

This commit is contained in:
Chris Seelus
2021-02-11 16:57:23 +01:00
parent 6fee31fc81
commit ee79596509
63 changed files with 457 additions and 1448 deletions
+2 -2
View File
@@ -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