diff options
| author | cedricnjanga | 2017-10-25 12:38:35 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-10-25 12:38:35 +0200 |
| commit | 7cdf3e07849626db4e31d96f19e6ad84b12b735e (patch) | |
| tree | a5bd753c492cc32181199df6f1a111d3ed3b7e37 /spec | |
| parent | a8ae0d3bf9105b17bfdb6dc22f527140f8edb6dd (diff) | |
| parent | b7869677cf5667ad8407e7898f8a86304b92baa7 (diff) | |
| download | chouette-core-7cdf3e07849626db4e31d96f19e6ad84b12b735e.tar.bz2 | |
Merge branch 'master' into staging
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/workers/workbench_import/workbench_import_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/workbench_import/workbench_import_worker_spec.rb b/spec/workers/workbench_import/workbench_import_worker_spec.rb index 9f860a6b3..deaa1e3a5 100644 --- a/spec/workers/workbench_import/workbench_import_worker_spec.rb +++ b/spec/workers/workbench_import/workbench_import_worker_spec.rb @@ -115,8 +115,8 @@ RSpec.describe WorkbenchImportWorker, type: [:worker, :request] do let( :spurious ){ [spurious1, spurious2] } let( :messages ){ double('messages') } let( :message_attributes ){{criticity: :warning, message_key: 'inconsistent_zip_file'}} - let( :message1_attributes ){ message_attributes.merge(message_attributes: {'import_name' => import.name, 'spurious_dirs' => spurious1.inspect}) } - let( :message2_attributes ){ message_attributes.merge(message_attributes: {'import_name' => import.name, 'spurious_dirs' => spurious2.inspect}) } + let( :message1_attributes ){ message_attributes.merge(message_attributes: {'import_name' => import.name, 'spurious_dirs' => spurious1.join(', ')}) } + let( :message2_attributes ){ message_attributes.merge(message_attributes: {'import_name' => import.name, 'spurious_dirs' => spurious2.join(', ')}) } before do allow(import).to receive(:messages).and_return(messages) |
