mirror of
https://github.com/redmine/redmine.git
synced 2025-11-03 20:06:24 +01: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:
@@ -215,8 +215,16 @@ class ContextMenusControllerTest < Redmine::ControllerTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_context_menu_should_show_enabled_custom_fields_for_the_role_only
|
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])
|
enabled_cf =
|
||||||
disabled_cf = IssueCustomField.generate!(:field_format => 'bool', :is_for_all => true, :tracker_ids => [1], :visible => false, :role_ids => [2])
|
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)
|
issue = Issue.generate!(:project_id => 1, :tracker_id => 1)
|
||||||
|
|
||||||
@request.session[:user_id] = 2
|
@request.session[:user_id] = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user