summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 17:57:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 17:57:36 +0000
commita3246bf5fa2bc9a557a15cc654b3df0cbdfbfb04 (patch)
tree48f22351a98b3108cae4799f16170c5d1af8ccf3 /test/integration
parent2738389fbd8654bf1ee5ddc94fda218eb8f92552 (diff)
downloadredmine-a3246bf5fa2bc9a557a15cc654b3df0cbdfbfb04.tar.gz
redmine-a3246bf5fa2bc9a557a15cc654b3df0cbdfbfb04.zip
cleanup: rubocop: fix Layout/AlignArguments in test/integration/attachments_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19051 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/attachments_test.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb
index de5bca57f..5802d36c5 100644
--- a/test/integration/attachments_test.rb
+++ b/test/integration/attachments_test.rb
@@ -30,9 +30,10 @@ class AttachmentsTest < Redmine::IntegrationTest
def test_upload_should_set_default_content_type
log_user('jsmith', 'jsmith')
assert_difference 'Attachment.count' do
- post "/uploads.js?attachment_id=1&filename=foo.txt",
+ post(
+ "/uploads.js?attachment_id=1&filename=foo.txt",
:params => "File content",
- :headers => {"CONTENT_TYPE" => 'application/octet-stream'}
+ :headers => {"CONTENT_TYPE" => 'application/octet-stream'})
assert_response :success
end
attachment = Attachment.order(:id => :desc).first
@@ -42,9 +43,10 @@ class AttachmentsTest < Redmine::IntegrationTest
def test_upload_should_accept_content_type_param
log_user('jsmith', 'jsmith')
assert_difference 'Attachment.count' do
- post "/uploads.js?attachment_id=1&filename=foo&content_type=image/jpeg",
+ post(
+ "/uploads.js?attachment_id=1&filename=foo&content_type=image/jpeg",
:params => "File content",
- :headers => {"CONTENT_TYPE" => 'application/octet-stream'}
+ :headers => {"CONTENT_TYPE" => 'application/octet-stream'})
assert_response :success
end
attachment = Attachment.order(:id => :desc).first
@@ -160,9 +162,10 @@ class AttachmentsTest < Redmine::IntegrationTest
def ajax_upload(filename, content, attachment_id=1)
assert_difference 'Attachment.count' do
- post "/uploads.js?attachment_id=#{attachment_id}&filename=#{filename}",
+ post(
+ "/uploads.js?attachment_id=#{attachment_id}&filename=#{filename}",
:params => content,
- :headers => {"CONTENT_TYPE" => 'application/octet-stream'}
+ :headers => {"CONTENT_TYPE" => 'application/octet-stream'})
assert_response :success
assert_equal 'text/javascript', response.content_type
end