fix(test_uploader): remove frozen literal from test file

This commit is contained in:
Luis Castro 2019-08-02 12:19:50 +02:00
parent 096a6a27a1
commit fd564be0bc
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639
2 changed files with 2 additions and 5 deletions

View file

@ -31,8 +31,7 @@ module ExportSupporters
params = JSON.parse(params, object_class: HashWithIndifferentAccess)
# verify that it's also a hash since we can't do that at once
ParamValidation.new({ params: params },
params: { is_hash: true })
ParamValidation.new({ params: params }, params: { is_hash: true })
begin
export = Export.find(export_id)
rescue ActiveRecord::RecordNotFound

4
spec/support/test_chunked_uploader.rb Normal file → Executable file
View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class TestChunkedUploader
TEST_ERROR_MESSAGE = 'test exception thrown'
@ -13,7 +11,7 @@ class TestChunkedUploader
@@output
end
## use this to throw an exception instead of finishing
# use this to throw an exception instead of finishing
def self.raise_error
@@raise_error = true
end