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