multiple view states

This commit is contained in:
MichaelAChrisco
2015-04-03 15:26:59 -07:00
parent 4415211100
commit c74291a001
2 changed files with 19 additions and 1 deletions

View File

@@ -29,6 +29,18 @@ describe Crono::Web do
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)
get '/'
expect(last_response.body).to include 'Success'
end
it 'should show a pending mark when a job is pending' do
@test_job.update(healthy: nil)
get '/'
expect(last_response.body).to include 'Pending'
end
end
describe '/job/:id' do