From fd564be0bcc402b48ac7e4aa4a80e34801a2be94 Mon Sep 17 00:00:00 2001 From: Luis Castro Date: Fri, 2 Aug 2019 12:19:50 +0200 Subject: [PATCH] fix(test_uploader): remove frozen literal from test file --- lib/export/export_supporters.rb | 3 +-- spec/support/test_chunked_uploader.rb | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) mode change 100644 => 100755 spec/support/test_chunked_uploader.rb diff --git a/lib/export/export_supporters.rb b/lib/export/export_supporters.rb index 8c7c4991..51e4a4cb 100644 --- a/lib/export/export_supporters.rb +++ b/lib/export/export_supporters.rb @@ -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 diff --git a/spec/support/test_chunked_uploader.rb b/spec/support/test_chunked_uploader.rb old mode 100644 new mode 100755 index e09cc6dd..227a5b79 --- a/spec/support/test_chunked_uploader.rb +++ b/spec/support/test_chunked_uploader.rb @@ -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