fix(test_uploader): remove frozen literal from test file
This commit is contained in:
parent
096a6a27a1
commit
fd564be0bc
2 changed files with 2 additions and 5 deletions
|
@ -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
4
spec/support/test_chunked_uploader.rb
Normal file → Executable 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
|
||||
|
|
Loading…
Reference in a new issue