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:
parent
b49948d880
commit
8a66522314
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue