From 4588fb20c55d0aa359dcc86f0431445e8ff67910 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 9 Nov 2019 16:33:58 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/AlignArguments in test/unit/issue_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19036 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/issue_test.rb | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 0c3315459..caeb2f324 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -1026,16 +1026,18 @@ class IssueTest < ActiveSupport::TestCase issue = Issue.new(:project_id => 1, :tracker_id => 1, :status_id => 1) - issue.send :safe_attributes=, {'start_date' => '2012-07-12', - 'due_date' => '2012-07-14'}, - user + issue.send(:safe_attributes=, + {'start_date' => '2012-07-12', + 'due_date' => '2012-07-14'}, + user) assert_equal Date.parse('2012-07-12'), issue.start_date assert_nil issue.due_date - issue.send :safe_attributes=, {'start_date' => '2012-07-15', - 'due_date' => '2012-07-16', - 'status_id' => 2}, - user + issue.send(:safe_attributes=, + {'start_date' => '2012-07-15', + 'due_date' => '2012-07-16', + 'status_id' => 2}, + user) assert_equal Date.parse('2012-07-12'), issue.start_date assert_equal Date.parse('2012-07-16'), issue.due_date end @@ -1070,7 +1072,7 @@ class IssueTest < ActiveSupport::TestCase issue.required_attribute_names(user).sort assert !issue.save, "Issue was saved" assert_equal ["Category cannot be blank", "Due date cannot be blank", "Foo cannot be blank"], - issue.errors.full_messages.sort + issue.errors.full_messages.sort issue.tracker_id = 2 assert_equal [cf.id.to_s, "start_date"], issue.required_attribute_names(user).sort @@ -1854,8 +1856,9 @@ class IssueTest < ActiveSupport::TestCase parent.reload parent.project_id = project.id assert !parent.save - assert_include "Subtask ##{child.id} could not be moved to the new project: Tracker is not included in the list", - parent.errors[:base] + assert_include( + "Subtask ##{child.id} could not be moved to the new project: Tracker is not included in the list", + parent.errors[:base]) end def test_copy_to_the_same_project -- 2.39.5