From c2445d831b07e21049a02618f5fab4d361079f11 Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Mon, 13 Apr 2015 16:45:38 +0300 Subject: [PATCH] Fix specs --- spec/web_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/web_spec.rb b/spec/web_spec.rb index fb5bc76..9e4c0c6 100644 --- a/spec/web_spec.rb +++ b/spec/web_spec.rb @@ -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