Merge pull request #8977 from demarches-simplifiees/fix_other_flaky_spec

Corrige un test non fiable
This commit is contained in:
LeSim 2023-04-27 07:27:11 +00:00 committed by GitHub
commit 2ad8ccc310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)