From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 12:58:14 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/AlignArguments in test/test_helper.rb X-Git-Tag: 4.2.0~1390 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=109973a908512250b64049400d588bb9b42a0ebd;p=redmine.git cleanup: rubocop: fix Layout/AlignArguments in test/test_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19250 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index c19fe8f3f..aa3e90f54 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/test/test_helper.rb b/test/test_helper.rb index e27334ca4..0be6d5a8a 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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