summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-31 10:20:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-31 10:20:59 +0000
commit8a665223141e0a623af7ee113cf5b8c3e111a719 (patch)
treea4359c9382c89c6e4ef588ee2a4e0b15bccfebc5 /test/unit/issue_test.rb
parentb49948d880315844f811b716a329e6892c1240d1 (diff)
downloadredmine-8a665223141e0a623af7ee113cf5b8c3e111a719.tar.gz
redmine-8a665223141e0a623af7ee113cf5b8c3e111a719.zip
fix unit issue test fails on Wednesday
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10776 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r--test/unit/issue_test.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 1be4c02b6..777edcf95 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -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