diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-24 05:44:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-24 05:44:51 +0000 |
commit | 3f6d9f74f7cd751146f5a7d8f70eb53f9ca81c75 (patch) | |
tree | bae60ffef3841fe82e8dc9945bfae63ca5bde3f9 /test/unit/issue_test.rb | |
parent | b4fc7d45a6b97178a23278b7ca3539f4c3e4c5ff (diff) | |
download | redmine-3f6d9f74f7cd751146f5a7d8f70eb53f9ca81c75.tar.gz redmine-3f6d9f74f7cd751146f5a7d8f70eb53f9ca81c75.zip |
cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/unit/issue_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19242 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r-- | test/unit/issue_test.rb | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index d6008938d..3203e2a3f 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -959,10 +959,16 @@ class IssueTest < ActiveSupport::TestCase assert_equal 'value1', issue.custom_field_value(cf1) assert_nil issue.custom_field_value(cf2) - issue.send :safe_attributes=, {'custom_fields' => [ - {'id' => cf1.id.to_s, 'value' => 'valuea'}, - {'id' => cf2.id.to_s, 'value' => 'valueb'} - ]}, user + issue.send( + :safe_attributes=, + { + 'custom_fields' => + [ + {'id' => cf1.id.to_s, 'value' => 'valuea'}, + {'id' => cf2.id.to_s, 'value' => 'valueb'} + ] + }, user + ) assert_equal 'valuea', issue.custom_field_value(cf1) assert_nil issue.custom_field_value(cf2) end @@ -2986,9 +2992,7 @@ class IssueTest < ActiveSupport::TestCase def test_save_attachments_with_array_should_warn_about_missing_tokens set_tmp_attachments_directory issue = Issue.generate! - issue.save_attachments([ - {'token' => 'missing'} - ]) + issue.save_attachments([{'token' => 'missing'}]) assert !issue.save assert issue.errors[:base].present? assert_equal 0, issue.reload.attachments.count |