diff options
| author | Luc Donnet | 2017-12-20 10:26:07 +0100 |
|---|---|---|
| committer | GitHub | 2017-12-20 10:26:07 +0100 |
| commit | 3df4c7feb809fc6e8eeeec5010147c42447388d8 (patch) | |
| tree | d121af6b31090bcbb46320cbb3c15e6af3d2cf89 /spec/factories | |
| parent | 2f4094c28cb5f7b32cf40f231e904dafbac7eafb (diff) | |
| parent | 443de38df52143f72d97308c28ac68f99e009757 (diff) | |
| download | chouette-core-3df4c7feb809fc6e8eeeec5010147c42447388d8.tar.bz2 | |
Merge pull request #151 from af83/5281-workbench-import-structural-bug-reading-zip
5281 workbench import structural bug reading zip
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 |
