From 368cdde296b89770d7b99ab9913344761146a1ef Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Sat, 7 Mar 2015 03:54:35 +0200 Subject: [PATCH] Fix Ruby 2.0.0 time comparsion issue --- spec/job_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/job_spec.rb b/spec/job_spec.rb index 7fdecda..f6e655e 100644 --- a/spec/job_spec.rb +++ b/spec/job_spec.rb @@ -43,7 +43,7 @@ describe Crono::Job do job.last_performed_at = Time.now job.save @crono_job = Crono::CronoJob.find_by(job_id: job.job_id) - expect(@crono_job.last_performed_at).to be_eql(job.last_performed_at) + expect(@crono_job.last_performed_at.to_time).to be_eql(job.last_performed_at.to_time) end end @@ -56,7 +56,7 @@ describe Crono::Job do it "should load info from DB" do @job = Crono::Job.new(TestJob, period) @job.load - expect(@job.last_performed_at).to be_eql @saved_last_performed_at + expect(@job.last_performed_at.to_time).to be_eql @saved_last_performed_at.to_time end end end