mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix GCS and Azure failing tests on Active Storage
This commit is contained in:
parent
5d81880670
commit
60d3c14a73
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,7 @@ end
|
|||
if SERVICE_CONFIGURATIONS[:gcs]
|
||||
class ActiveStorage::GCSDirectUploadsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
Rails.configuration.active_storage.service = "gcs"
|
||||
@config = SERVICE_CONFIGURATIONS[:gcs]
|
||||
|
||||
@old_service = ActiveStorage::Blob.service
|
||||
|
@ -49,6 +50,7 @@ if SERVICE_CONFIGURATIONS[:gcs]
|
|||
|
||||
teardown do
|
||||
ActiveStorage::Blob.service = @old_service
|
||||
Rails.configuration.active_storage.service = "local"
|
||||
end
|
||||
|
||||
test "creating new direct upload" do
|
||||
|
@ -75,6 +77,7 @@ end
|
|||
if SERVICE_CONFIGURATIONS[:azure]
|
||||
class ActiveStorage::AzureStorageDirectUploadsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
Rails.configuration.active_storage.service = "azure"
|
||||
@config = SERVICE_CONFIGURATIONS[:azure]
|
||||
|
||||
@old_service = ActiveStorage::Blob.service
|
||||
|
@ -83,6 +86,7 @@ if SERVICE_CONFIGURATIONS[:azure]
|
|||
|
||||
teardown do
|
||||
ActiveStorage::Blob.service = @old_service
|
||||
Rails.configuration.active_storage.service = "local"
|
||||
end
|
||||
|
||||
test "creating new direct upload" do
|
||||
|
|
Loading…
Reference in a new issue