mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
shorten long line of test/unit/issue_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20166 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1012,8 +1012,12 @@ class IssueTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_editable_custom_fields_should_return_custom_field_that_is_enabled_for_the_role_only
|
||||
enabled_cf = IssueCustomField.generate!(:is_for_all => true, :tracker_ids => [1], :visible => false, :role_ids => [1,2])
|
||||
disabled_cf = IssueCustomField.generate!(:is_for_all => true, :tracker_ids => [1], :visible => false, :role_ids => [2])
|
||||
enabled_cf =
|
||||
IssueCustomField.generate!(:is_for_all => true, :tracker_ids => [1],
|
||||
:visible => false, :role_ids => [1, 2])
|
||||
disabled_cf =
|
||||
IssueCustomField.generate!(:is_for_all => true, :tracker_ids => [1],
|
||||
:visible => false, :role_ids => [2])
|
||||
user = User.find(2)
|
||||
issue = Issue.new(:project_id => 1, :tracker_id => 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user