summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 11:13:49 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 11:13:49 +0000
commit276674ce392b01feb1b6001e7089c075fc259f77 (patch)
treeb049db8b2e328612f08e5a19ff0a63069256e3f3 /test
parent762d015e1548f7d994501340515e13e5225551aa (diff)
downloadredmine-276674ce392b01feb1b6001e7089c075fc259f77.tar.gz
redmine-276674ce392b01feb1b6001e7089c075fc259f77.zip
code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in test/integration/api_test/attachments_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18651 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/integration/api_test/attachments_test.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb
index af2b397cf..f63c2b057 100644
--- a/test/integration/api_test/attachments_test.rb
+++ b/test/integration/api_test/attachments_test.rb
@@ -219,14 +219,11 @@ class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base
"CONTENT_TYPE" => 'application/octet-stream'
}.merge(credentials('jsmith'))
assert_response :created
-
end
-
json = ActiveSupport::JSON.decode(response.body)
assert_kind_of Hash, json['upload']
token = json['upload']['token']
assert token.present?
-
assert attachment = Attachment.find_by_token(token)
assert_equal 0, attachment.filesize
assert attachment.digest.present?