end
def test_rescheduling_a_stale_issue_should_not_raise_an_error
- stale = Issue.find(1)
- issue = Issue.find(1)
- issue.subject = "Updated"
- issue.save!
-
- date = 10.days.from_now.to_date
- assert_nothing_raised do
- stale.reschedule_on!(date)
+ with_settings :non_working_week_days => [] do
+ stale = Issue.find(1)
+ issue = Issue.find(1)
+ issue.subject = "Updated"
+ issue.save!
+ date = 10.days.from_now.to_date
+ assert_nothing_raised do
+ stale.reschedule_on!(date)
+ end
+ assert_equal date, stale.reload.start_date
end
- assert_equal date, stale.reload.start_date
end
def test_overdue