fix unit issue test fails on Wednesday

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10776 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-10-31 10:20:59 +00:00
parent b49948d880
commit 8a66522314
1 changed files with 10 additions and 9 deletions

View File

@ -1378,16 +1378,17 @@ class IssueTest < ActiveSupport::TestCase
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