aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/models/info_request_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb
index 77dba533b..c2e8f34e2 100644
--- a/spec/models/info_request_spec.rb
+++ b/spec/models/info_request_spec.rb
@@ -110,11 +110,13 @@ describe InfoRequest, "when calculating status" do
it "is awaiting response when recently new" do
ir = send_msg(Time.new - 5.days)
ir.calculate_status.should == 'waiting_response'
+ ir.days_overdue.should <= 0
end
it "is overdue when very old" do
ir = send_msg(Time.new - 50.days)
ir.calculate_status.should == 'waiting_response_overdue'
+ ir.days_overdue.should > 0
end
it "has correct due date" do