diff options
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/issue_test.rb | 6 | ||||
-rw-r--r-- | test/unit/project_test.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 329d64361..0747f5c84 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -650,7 +650,7 @@ class IssueTest < ActiveSupport::TestCase end def test_copy_should_copy_subtasks - issue = Issue.generate_with_descendants!(Project.find(1), :subject => 'Parent') + issue = Issue.generate_with_descendants! copy = issue.reload.copy copy.author = User.find(7) @@ -665,7 +665,7 @@ class IssueTest < ActiveSupport::TestCase end def test_copy_should_copy_subtasks_to_target_project - issue = Issue.generate_with_descendants!(Project.find(1), :subject => 'Parent') + issue = Issue.generate_with_descendants! copy = issue.copy(:project_id => 3) assert_difference 'Issue.count', 1+issue.descendants.count do @@ -675,7 +675,7 @@ class IssueTest < ActiveSupport::TestCase end def test_copy_should_not_copy_subtasks_twice_when_saving_twice - issue = Issue.generate_with_descendants!(Project.find(1), :subject => 'Parent') + issue = Issue.generate_with_descendants! copy = issue.reload.copy assert_difference 'Issue.count', 1+issue.descendants.count do diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 8338a1f53..8960f24af 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -1054,7 +1054,7 @@ class ProjectTest < ActiveSupport::TestCase def test_copy_should_copy_subtasks source = Project.generate!(:tracker_ids => [1]) - issue = Issue.generate_with_descendants!(source, :subject => 'Parent') + issue = Issue.generate_with_descendants!(:project => source) project = Project.new(:name => 'Copy', :identifier => 'copy', :tracker_ids => [1]) assert_difference 'Project.count' do |