Allow running specs in Docker (Web) container
This commit is contained in:
@@ -52,10 +52,9 @@ Rails.application.configure do
|
||||
|
||||
config.active_job.queue_adapter = :test
|
||||
|
||||
if ENV["S3_ENABLED"]
|
||||
if ENV["S3_ENABLED"] && ENV["S3_ENABLED"].to_s != "false"
|
||||
config.active_storage.service = :s3
|
||||
else
|
||||
# Store attachments on the local disk (in ./tmp)
|
||||
config.active_storage.service = :test
|
||||
config.active_storage.service = :local
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user