summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 16:33:43 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 16:33:43 +0000
commit129832837adacb4e95e710b942322e721822f193 (patch)
tree416ccf7ae1797aae3f3dfe42d13541218f906634 /test/unit
parent4c8b2ea40b022cfd1dfd5ec35a4ff6cf74b713f2 (diff)
downloadredmine-129832837adacb4e95e710b942322e721822f193.tar.gz
redmine-129832837adacb4e95e710b942322e721822f193.zip
cleanup: rubocop: fix Layout/AlignArguments in test/unit/attachment_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19035 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/attachment_test.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index abe42587c..831278634 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -296,7 +296,8 @@ class AttachmentTest < ActiveSupport::TestCase
test "Attachmnet.attach_files should attach the file" do
issue = Issue.first
assert_difference 'Attachment.count' do
- Attachment.attach_files(issue,
+ Attachment.attach_files(
+ issue,
'1' => {
'file' => uploaded_test_file('testfile.txt', 'text/plain'),
'description' => 'test'
@@ -516,8 +517,9 @@ class AttachmentTest < ActiveSupport::TestCase
[101, 150],
].each do |size, generated_size|
thumbnail = attachment.thumbnail(size: size)
- assert_equal "8e0294de2441577c529f170b6fb8f638_2654_#{generated_size}.thumb",
- File.basename(thumbnail)
+ assert_equal(
+ "8e0294de2441577c529f170b6fb8f638_2654_#{generated_size}.thumb",
+ File.basename(thumbnail))
end
ensure
set_tmp_attachments_directory