mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-28 03:37:21 +02:00
Period#next should return today time if it is first run and not too late
This commit is contained in:
@@ -25,11 +25,7 @@ describe Crono::Scheduler do
|
||||
|
||||
describe "#next" do
|
||||
it "should return next job in schedule" do
|
||||
expect(@scheduler.next).to be @jobs[1]
|
||||
end
|
||||
|
||||
it "should return next based on last" do
|
||||
expect(@scheduler.next)
|
||||
expect(@scheduler.next).to be @jobs[2]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user