summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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))