]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of ContextMenusControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 2 Oct 2020 12:58:09 +0000 (12:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 2 Oct 2020 12:58:09 +0000 (12:58 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20097 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/context_menus_controller_test.rb

index 1e926c29da7f202d89c3a567e080178049b5da3f..4e844df0ef8b6e6f77e7aa2a984b7a3c96e4cb38 100644 (file)
@@ -215,8 +215,16 @@ class ContextMenusControllerTest < Redmine::ControllerTest
   end
 
   def test_context_menu_should_show_enabled_custom_fields_for_the_role_only
-    enabled_cf = IssueCustomField.generate!(:field_format => 'bool', :is_for_all => true, :tracker_ids => [1], :visible => false, :role_ids => [1,2])
-    disabled_cf = IssueCustomField.generate!(:field_format => 'bool', :is_for_all => true, :tracker_ids => [1], :visible => false, :role_ids => [2])
+    enabled_cf =
+      IssueCustomField.generate!(
+        :field_format => 'bool', :is_for_all => true,
+        :tracker_ids => [1], :visible => false, :role_ids => [1, 2]
+      )
+    disabled_cf =
+      IssueCustomField.generate!(
+        :field_format => 'bool', :is_for_all => true,
+        :tracker_ids => [1], :visible => false, :role_ids => [2]
+      )
     issue = Issue.generate!(:project_id => 1, :tracker_id => 1)
 
     @request.session[:user_id] = 2