mirror of
https://github.com/plashchynski/crono.git
synced 2026-12-04 13:46:29 +01:00
Fix: Next performing time should be related to last performing time
This commit is contained in:
1 parent
828488a6bc
commit
78fa0f9dae
3 files changed
+11
-3
No files matched your search
@@ -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