diff options
| author | Robert | 2017-12-15 08:24:24 +0100 |
|---|---|---|
| committer | Robert | 2017-12-15 08:32:30 +0100 |
| commit | 443de38df52143f72d97308c28ac68f99e009757 (patch) | |
| tree | 376521ea3e78070c3548c622a878bba26c124cb5 /spec/factories | |
| parent | b6067ba25bff1dc95975be49e3f9a02a5932202a (diff) | |
| download | chouette-core-443de38df52143f72d97308c28ac68f99e009757.tar.bz2 | |
Fixes: #5281@1.2h; View specs and minor CR change from #50065281-workbench-import-structural-bug-reading-zip
- CR change from #5006, severity of zip file messages :warning -> :error
- View specs for showing import_messages
Diffstat (limited to 'spec/factories')
| -rw-r--r-- | spec/factories/import_messages.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/import_messages.rb b/spec/factories/import_messages.rb index 75f80566c..5d936679a 100644 --- a/spec/factories/import_messages.rb +++ b/spec/factories/import_messages.rb @@ -3,5 +3,17 @@ FactoryGirl.define do association :import association :resource, factory: :import_resource criticity :info + + factory :corrupt_zip_file do + message_key 'corrupt_zip_file' + message_attributes({ source_filename: 'political file' }) + criticity :error + end + + factory :inconsistent_zip_file do + message_key 'inconsistent_zip_file' + message_attributes({ source_filename: 'robert talking', spurious_dirs: %w{dogs and cats}.join }) + criticity :warning + end end end |
