@@ -1378,17 +1378,18 class IssueTest < ActiveSupport::TestCase | |||
|
1378 | 1378 | end |
|
1379 | 1379 | |
|
1380 | 1380 | def test_rescheduling_a_stale_issue_should_not_raise_an_error |
|
1381 | with_settings :non_working_week_days => [] do | |
|
1381 | 1382 | stale = Issue.find(1) |
|
1382 | 1383 | issue = Issue.find(1) |
|
1383 | 1384 | issue.subject = "Updated" |
|
1384 | 1385 | issue.save! |
|
1385 | ||
|
1386 | 1386 | date = 10.days.from_now.to_date |
|
1387 | 1387 | assert_nothing_raised do |
|
1388 | 1388 | stale.reschedule_on!(date) |
|
1389 | 1389 | end |
|
1390 | 1390 | assert_equal date, stale.reload.start_date |
|
1391 | 1391 | end |
|
1392 | end | |
|
1392 | 1393 | |
|
1393 | 1394 | def test_overdue |
|
1394 | 1395 | assert Issue.new(:due_date => 1.day.ago.to_date).overdue? |
General Comments 0
You need to be logged in to leave comments.
Login now