]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in test/integration/api_t...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 11:13:49 +0000 (11:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 11:13:49 +0000 (11:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18651 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/integration/api_test/attachments_test.rb

index b389604f375f60f26930f7596e136df0b5ca2894..2fcf2dc5765ab004a86194d96ea6dd4ac0d7bb6c 100644 (file)
@@ -189,7 +189,6 @@ Layout/EmptyLinesAroundBlockBody:
   Exclude:
     - 'db/schema.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-    - 'test/integration/api_test/attachments_test.rb'
     - 'test/integration/api_test/my_test.rb'
 
 # Cop supports --auto-correct.
index af2b397cfaa23c524d84518f2f15fbb334c3622c..f63c2b0571d09e85301e30ddf65fb5e0f1beba89 100644 (file)
@@ -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?