aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/customstates.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-10-17 14:04:58 +0100
committerLouise Crow <louise.crow@gmail.com>2012-10-17 14:04:58 +0100
commita4927fc05a710cee6217d8a40ce925d5f894fd8f (patch)
tree83909e1d903afbf49d50182af79a679442632975 /spec/models/customstates.rb
parentcc27fe66a13fe1504711c64ce5530a1c178e907d (diff)
parentcc7bc36d5748c9baa0cfd8e44395923cc5792f32 (diff)
Merge branch 'release/0.6.7' into wdtk
Conflicts: config/general.yml-example
Diffstat (limited to 'spec/models/customstates.rb')
-rw-r--r--spec/models/customstates.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/customstates.rb b/spec/models/customstates.rb
index 3488e6730..bffbe86fb 100644
--- a/spec/models/customstates.rb
+++ b/spec/models/customstates.rb
@@ -13,7 +13,7 @@ module InfoRequestCustomStates
return 'deadline_extended' if
Time.now.strftime("%Y-%m-%d") < self.date_deadline_extended.strftime("%Y-%m-%d")
return 'waiting_response_very_overdue' if
- Time.now.strftime("%Y-%m-%d") > Holiday.due_date_from(self.date_deadline_extended, 15).strftime("%Y-%m-%d")
+ Time.now.strftime("%Y-%m-%d") > Holiday.due_date_from_working_days(self.date_deadline_extended, 15).strftime("%Y-%m-%d")
return 'waiting_response_overdue'
end
return 'waiting_response_very_overdue' if
@@ -27,7 +27,7 @@ module InfoRequestCustomStates
# XXX shouldn't this be 15 days after the date the status was
# changed to "deadline extended"? Or perhaps 15 days ater the
# initial request due date?
- return Holiday.due_date_from(self.date_response_required_by, 15)
+ return Holiday.due_date_from_working_days(self.date_response_required_by, 15)
end
module ClassMethods