diff options
| author | Luc Donnet | 2017-10-31 09:45:25 +0100 |
|---|---|---|
| committer | Luc Donnet | 2017-10-31 09:45:51 +0100 |
| commit | ae402d2a632e9033851c4701b5b6a41767595aa9 (patch) | |
| tree | cf91da73eea5ef650391a2982e579d8427df04ca /spec/models/import_spec.rb | |
| parent | 718d9ab7f8d5b1cd125ee341bd098c41615a0cbd (diff) | |
| download | chouette-core-ae402d2a632e9033851c4701b5b6a41767595aa9.tar.bz2 | |
Fix locales problem for wrong file extension in import Refs #4816
Diffstat (limited to 'spec/models/import_spec.rb')
| -rw-r--r-- | spec/models/import_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb index c06d05dab..7be05908a 100644 --- a/spec/models/import_spec.rb +++ b/spec/models/import_spec.rb @@ -10,7 +10,7 @@ RSpec.describe Import, type: :model do it { should validate_presence_of(:workbench) } it { should validate_presence_of(:creator) } - it { should allow_value('file.zip').for(:file).with_message(I18n.t('activerecord.errors.models.imports.wrong_file_extension')) } + it { should allow_value('file.zip').for(:file).with_message(I18n.t('activerecord.errors.models.import.attributes.file.wrong_file_extension')) } it { should_not allow_values('file.json', 'file.png', 'file.pdf').for(:file) } let(:workbench_import) { build_stubbed(:workbench_import) } |
