diff options
author | francis <francis> | 2009-10-26 17:52:38 +0000 |
---|---|---|
committer | francis <francis> | 2009-10-26 17:52:38 +0000 |
commit | 989ff405532e4a9eff61e1c9cac30a44a53b2d73 (patch) | |
tree | 6d4df6952beb5b37478c7fbcbbc5e853294f35ba /spec/models | |
parent | dae3a089e811efa46e84e0ec058810c99484e367 (diff) |
Make number of days explicit.
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/holiday_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/holiday_spec.rb b/spec/models/holiday_spec.rb index ebfdeba4b..34526388d 100644 --- a/spec/models/holiday_spec.rb +++ b/spec/models/holiday_spec.rb @@ -4,7 +4,7 @@ describe Holiday, " when calculating due date" do fixtures :holidays def due_date(ymd) - return Holiday.due_date_from(Date.strptime(ymd)).strftime("%F") + return Holiday.due_date_from(Date.strptime(ymd), 20).strftime("%F") end it "handles no holidays" do @@ -43,7 +43,7 @@ describe Holiday, " when calculating due date" do end it "handles Time objects" do - Holiday.due_date_from(Time.utc(2009, 03, 16, 12, 0, 0)).strftime('%F').should == '2009-04-16' + Holiday.due_date_from(Time.utc(2009, 03, 16, 12, 0, 0), 20).strftime('%F').should == '2009-04-16' end end |