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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user