This commit is contained in:
Dzmitry Plashchynski
2015-03-07 16:06:40 +02:00
parent 5db94543d1
commit 98f058767f
2 changed files with 6 additions and 6 deletions

View File

@@ -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_datetime.to_s).to be_eql job.last_performed_at.to_datetime.to_s
expect(@crono_job.last_performed_at.utc).to be_eql job.last_performed_at.utc
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_datetime.to_s).to be_eql @saved_last_performed_at.to_datetime.to_s
expect(@job.last_performed_at.utc).to be_eql @saved_last_performed_at.utc
end
end
end