]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in test/test_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 12:58:14 +0000 (12:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 12:58:14 +0000 (12:58 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19250 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/test_helper.rb

index c19fe8f3f91f672d60a71ae9a2ac94fd2b1e23e3..aa3e90f549aa7482204f5277666cf3203f5f0c81 100644 (file)
@@ -19,7 +19,6 @@ Layout/AlignArguments:
     - 'test/integration/api_test/memberships_test.rb'
     - 'test/integration/api_test/projects_test.rb'
     - 'test/integration/api_test/wiki_pages_test.rb'
-    - 'test/test_helper.rb'
     - 'test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb'
     - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
 
index e27334ca404c55ff1ab044b255116c20fdae8dde..0be6d5a8a95aec4c3a8f45e1d0570e5686a904dc 100644 (file)
@@ -411,9 +411,11 @@ module Redmine
       def upload(format, content, credentials)
         set_tmp_attachments_directory
         assert_difference 'Attachment.count' do
-          post "/uploads.#{format}",
+          post(
+            "/uploads.#{format}",
             :params => content,
             :headers => {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials)
+          )
           assert_response :created
         end
         data = response_data