mirror of
https://github.com/plashchynski/crono.git
synced 2026-06-11 17:32:45 +02:00
Fix: Next performing time should be related to last performing time
This commit is contained in:
@@ -30,6 +30,11 @@ describe Crono::Period do
|
||||
@period = Crono::Period.new(2.day, at: 1)
|
||||
}.to raise_error("Unknown 'at' format")
|
||||
end
|
||||
|
||||
it "should return time in relation to last time" do
|
||||
@period = Crono::Period.new(2.day)
|
||||
expect(@period.next(since: 1.day.ago)).to be_eql(1.day.from_now)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user