diff options
Diffstat (limited to 'spec/models/holiday_spec.rb')
-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 |