mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-28 19:29:38 +00:00
shorten long line of ContextMenusControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20097 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
26bc3838e1
commit
18676cea4a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user