diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-29 10:06:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-29 10:06:30 +0000 |
commit | b71355f10b247f35a32fc002d52a9ca536537998 (patch) | |
tree | 02618fb61aedd65e713ae699915b39391dd09f79 /test/unit/issue_nested_set_test.rb | |
parent | 48d83884c36fae4882061360da25f4e2ed1def13 (diff) | |
download | redmine-b71355f10b247f35a32fc002d52a9ca536537998.tar.gz redmine-b71355f10b247f35a32fc002d52a9ca536537998.zip |
Ignore non-working days when rescheduling an issue (#2161).
Weekly non-working days can be configured in application settings (set to saturday and sunday by default).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10747 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_nested_set_test.rb')
-rw-r--r-- | test/unit/issue_nested_set_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb index c5513f922..d796edf94 100644 --- a/test/unit/issue_nested_set_test.rb +++ b/test/unit/issue_nested_set_test.rb @@ -346,7 +346,7 @@ class IssueNestedSetTest < ActiveSupport::TestCase c1 = Issue.generate!(:start_date => '2010-05-12', :due_date => '2010-05-18', :parent_issue_id => parent.id) c2 = Issue.generate!(:start_date => '2010-06-03', :due_date => '2010-06-10', :parent_issue_id => parent.id) parent.reload - parent.reschedule_after(Date.parse('2010-06-02')) + parent.reschedule_on!(Date.parse('2010-06-02')) c1.reload assert_equal [Date.parse('2010-06-02'), Date.parse('2010-06-08')], [c1.start_date, c1.due_date] c2.reload |