Period#next should return today time if it is first run and not too late

This commit is contained in:
Dzmitry Plashchynski
2015-03-07 04:13:59 +02:00
parent 368cdde296
commit 6d90cb3233
4 changed files with 26 additions and 11 deletions

View File

@@ -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