From c5d5eef9f107008a29536321fa0ff56209620632 Mon Sep 17 00:00:00 2001 From: Zog Date: Mon, 12 Mar 2018 11:59:42 +0100 Subject: Regs #6133; Define file's extensions whitelist on a per-class basis --- spec/models/import/import_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/models/import/import_spec.rb b/spec/models/import/import_spec.rb index 6b9201129..c41d5ba53 100644 --- a/spec/models/import/import_spec.rb +++ b/spec/models/import/import_spec.rb @@ -12,7 +12,7 @@ RSpec.describe Import::Base, type: :model do include ActionDispatch::TestProcess it { should allow_value(fixture_file_upload('OFFRE_TRANSDEV_2017030112251.zip')).for(:file) } - it { should_not allow_value(fixture_file_upload('reflex_updated.xml')).for(:file).with_message(I18n.t('errors.messages.extension_whitelist_error', extension: '"xml"', allowed_types: "zip, csv, json")) } + it { should_not allow_value(fixture_file_upload('users.json')).for(:file).with_message(I18n.t('errors.messages.extension_whitelist_error', extension: '"json"', allowed_types: "zip")) } let(:workbench_import) {netex_import.parent} let(:workbench_import_with_completed_steps) do -- cgit v1.2.3