diff options
| author | Zog | 2018-03-12 11:59:42 +0100 | 
|---|---|---|
| committer | Zog | 2018-03-12 12:00:15 +0100 | 
| commit | c5d5eef9f107008a29536321fa0ff56209620632 (patch) | |
| tree | 5faa64a1bfac1bda0152941cece46fc28279e06e /spec/models/import | |
| parent | 02569d6d4ff391982ced4f12cd57b2f56bb499b2 (diff) | |
| download | chouette-core-c5d5eef9f107008a29536321fa0ff56209620632.tar.bz2 | |
Regs #6133; Define file's extensions whitelist on a per-class basis6133-new-exports
Diffstat (limited to 'spec/models/import')
| -rw-r--r-- | spec/models/import/import_spec.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
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  | 
