diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 16:33:58 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 16:33:58 +0000 |
commit | 4588fb20c55d0aa359dcc86f0431445e8ff67910 (patch) | |
tree | 74cdffc94eb7a3cafaa3dd9882611cd2dbb6a67f /test | |
parent | 129832837adacb4e95e710b942322e721822f193 (diff) | |
download | redmine-4588fb20c55d0aa359dcc86f0431445e8ff67910.tar.gz redmine-4588fb20c55d0aa359dcc86f0431445e8ff67910.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/issue_test.rb | 23 |
1 files 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 |