From 18676cea4a192e2b5c8db7fbf1c6e97c49900fd6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 2 Oct 2020 12:58:09 +0000 Subject: [PATCH] shorten long line of ContextMenusControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20097 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/context_menus_controller_test.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index 1e926c29d..4e844df0e 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -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 -- 2.39.5