]> source.dussan.org Git - redmine.git/commitdiff
code layout cleanup test/functional/issues_controller_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 07:57:19 +0000 (07:57 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 07:57:19 +0000 (07:57 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19179 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 352f5cedf9f5101811a38156831ce120f13f8864..f56e36189df3f13ab4a230f7fc947cf0bb1a319b 100644 (file)
@@ -6874,8 +6874,10 @@ class IssuesControllerTest < Redmine::ControllerTest
   end
 
   def test_destroy_parent_and_child_issues
-    parent = Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 1, :subject => 'Parent Issue')
-    child = Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 1, :subject => 'Child Issue', :parent_issue_id => parent.id)
+    parent = Issue.create!(:project_id => 1, :author_id => 1,
+                           :tracker_id => 1, :subject => 'Parent Issue')
+    child = Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 1,
+                          :subject => 'Child Issue', :parent_issue_id => parent.id)
     assert child.is_descendant_of?(parent.reload)
 
     @request.session[:user_id] = 2