diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b389604f3..2fcf2dc57 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. 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?