Merge pull request #8977 from demarches-simplifiees/fix_other_flaky_spec
Corrige un test non fiable
This commit is contained in:
commit
2ad8ccc310
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ describe ActiveStorage::DownloadableFile do
|
|||
|
||||
context 'active_storage.service local' do
|
||||
before { Rails.application.config.active_storage.service = :local }
|
||||
after { Rails.application.config.active_storage.service = :test }
|
||||
it 'returns the list' do
|
||||
list = [:a, :b, :c]
|
||||
result = ActiveStorage::DownloadableFile.cleanup_list_from_dossier(list)
|
||||
|
@ -40,6 +41,7 @@ describe ActiveStorage::DownloadableFile do
|
|||
require 'fog/openstack'
|
||||
Rails.application.config.active_storage.service = :openstack
|
||||
end
|
||||
after { Rails.application.config.active_storage.service = :test }
|
||||
|
||||
it 'returns the list' do
|
||||
available_blob = double(key: available_blob_key)
|
||||
|
|
Loading…
Reference in a new issue