summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-24 14:39:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-24 14:39:16 +0000
commit24feec3bb7ce40091cf5283b49238fd64e3f5792 (patch)
tree8c7f8f95b963d3fcc401af4eb0ea1f625e71f588 /test
parent78dfef097803532fee664461f6485175917c1990 (diff)
downloadredmine-24feec3bb7ce40091cf5283b49238fd64e3f5792.tar.gz
redmine-24feec3bb7ce40091cf5283b49238fd64e3f5792.zip
shorten long line of test/unit/issue_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20177 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/issue_test.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 1d6930dc0..552f01587 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -1144,7 +1144,8 @@ class IssueTest < ActiveSupport::TestCase
Project.find(1).issue_categories.delete_all
WorkflowPermission.delete_all
WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1,
- :role_id => 1, :field_name => 'category_id',:rule => 'required')
+ :role_id => 1, :field_name => 'category_id',
+ :rule => 'required')
user = User.find(2)
issue = Issue.new(:project_id => 1, :tracker_id => 1, :status_id => 1,
@@ -1156,7 +1157,8 @@ class IssueTest < ActiveSupport::TestCase
Version.delete_all
WorkflowPermission.delete_all
WorkflowPermission.create!(:old_status_id => 1, :tracker_id => 1,
- :role_id => 1, :field_name => 'fixed_version_id',:rule => 'required')
+ :role_id => 1, :field_name => 'fixed_version_id',
+ :rule => 'required')
user = User.find(2)
issue = Issue.new(:project_id => 1, :tracker_id => 1, :status_id => 1,
@@ -1166,7 +1168,9 @@ class IssueTest < ActiveSupport::TestCase
def test_required_custom_field_that_is_not_visible_for_the_user_should_not_be_required
CustomField.destroy_all
- field = IssueCustomField.generate!(:is_required => true, :visible => false, :role_ids => [1], :trackers => Tracker.all, :is_for_all => true)
+ field = IssueCustomField.generate!(:is_required => true, :visible => false,
+ :role_ids => [1], :trackers => Tracker.all,
+ :is_for_all => true)
user = User.generate!
User.add_to_project(user, Project.find(1), Role.find(2))
@@ -1177,7 +1181,9 @@ class IssueTest < ActiveSupport::TestCase
def test_required_custom_field_that_is_visible_for_the_user_should_be_required
CustomField.destroy_all
- field = IssueCustomField.generate!(:is_required => true, :visible => false, :role_ids => [1], :trackers => Tracker.all, :is_for_all => true)
+ field = IssueCustomField.generate!(:is_required => true, :visible => false,
+ :role_ids => [1], :trackers => Tracker.all,
+ :is_for_all => true)
user = User.generate!
User.add_to_project(user, Project.find(1), Role.find(1))