mirror of
https://github.com/plashchynski/crono.git
synced 2026-07-02 11:01:45 +02:00
Fix specs
This commit is contained in:
+2
-2
@@ -43,7 +43,7 @@ describe Crono::Job do
|
|||||||
job.last_performed_at = Time.now
|
job.last_performed_at = Time.now
|
||||||
job.save
|
job.save
|
||||||
@crono_job = Crono::CronoJob.find_by(job_id: job.job_id)
|
@crono_job = Crono::CronoJob.find_by(job_id: job.job_id)
|
||||||
expect(@crono_job.last_performed_at.to_time).to be_eql(job.last_performed_at.to_time)
|
expect(@crono_job.last_performed_at.to_datetime).to be_eql(job.last_performed_at.to_datetime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ describe Crono::Job do
|
|||||||
it "should load info from DB" do
|
it "should load info from DB" do
|
||||||
@job = Crono::Job.new(TestJob, period)
|
@job = Crono::Job.new(TestJob, period)
|
||||||
@job.load
|
@job.load
|
||||||
expect(@job.last_performed_at.to_time).to be_eql @saved_last_performed_at.to_time
|
expect(@job.last_performed_at.to_datetime).to be_eql @saved_last_performed_at.to_datetime
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user