diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-07 18:02:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-07 18:02:02 +0000 |
commit | 165373575883c3ca377d0d9d5ee0780cd0b09b24 (patch) | |
tree | 54335ed9f15e5fcc09240181ad111e2d9e0eaa32 /test/unit/issue_nested_set_test.rb | |
parent | 065376c160b0bc3ca6cd59707a0395b8bff23de9 (diff) | |
download | redmine-165373575883c3ca377d0d9d5ee0780cd0b09b24.tar.gz redmine-165373575883c3ca377d0d9d5ee0780cd0b09b24.zip |
Deprecated Issue#move_to_project.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8539 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 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb index 8d98ccf06..b2003d7f2 100644 --- a/test/unit/issue_nested_set_test.rb +++ b/test/unit/issue_nested_set_test.rb @@ -139,7 +139,9 @@ class IssueNestedSetTest < ActiveSupport::TestCase child = create_issue!(:parent_issue_id => parent1.id) grandchild = create_issue!(:parent_issue_id => child.id) - assert child.reload.move_to_project(Project.find(2)) + child.reload + child.project = Project.find(2) + assert child.save child.reload grandchild.reload parent1.reload @@ -159,7 +161,9 @@ class IssueNestedSetTest < ActiveSupport::TestCase assert_equal [1, parent1.id, 1, 6], [parent1.project_id, parent1.root_id, parent1.lft, parent1.rgt] # child can not be moved to Project 2 because its child is on a disabled tracker - assert_equal false, Issue.find(child.id).move_to_project(Project.find(2)) + child = Issue.find(child.id) + child.project = Project.find(2) + assert !child.save child.reload grandchild.reload parent1.reload |