keep test active_storage service
This commit is contained in:
parent
4c5e903673
commit
86e0538425
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ describe ActiveStorage::DownloadableFile do
|
||||||
|
|
||||||
context 'active_storage.service local' do
|
context 'active_storage.service local' do
|
||||||
before { Rails.application.config.active_storage.service = :local }
|
before { Rails.application.config.active_storage.service = :local }
|
||||||
|
after { Rails.application.config.active_storage.service = :test }
|
||||||
it 'returns the list' do
|
it 'returns the list' do
|
||||||
list = [:a, :b, :c]
|
list = [:a, :b, :c]
|
||||||
result = ActiveStorage::DownloadableFile.cleanup_list_from_dossier(list)
|
result = ActiveStorage::DownloadableFile.cleanup_list_from_dossier(list)
|
||||||
|
@ -40,6 +41,7 @@ describe ActiveStorage::DownloadableFile do
|
||||||
require 'fog/openstack'
|
require 'fog/openstack'
|
||||||
Rails.application.config.active_storage.service = :openstack
|
Rails.application.config.active_storage.service = :openstack
|
||||||
end
|
end
|
||||||
|
after { Rails.application.config.active_storage.service = :test }
|
||||||
|
|
||||||
it 'returns the list' do
|
it 'returns the list' do
|
||||||
available_blob = double(key: available_blob_key)
|
available_blob = double(key: available_blob_key)
|
||||||
|
|
Loading…
Reference in a new issue