Makes Issue.generate_with_descendants! helper accept attributes only.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10612 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-10-12 08:56:09 +00:00
parent 8bde60dc56
commit 51818cbbb6
4 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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