File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
lib/spree/testing_support
models/spree/concerns/active_storage_adapter Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class Application < ::Rails::Application
9090 config . active_record . dump_schema_after_migration = false
9191
9292 # Configure active storage to use storage within tmp folder
93- unless ENV [ 'DISABLE_ACTIVE_STORAGE' ]
93+ unless ( ENV [ 'DISABLE_ACTIVE_STORAGE' ] == 'true' )
9494 initializer 'solidus.active_storage' do
9595 config . active_storage . service_configurations = {
9696 test : {
@@ -140,7 +140,7 @@ class Application < ::Rails::Application
140140Spree . config do |config |
141141 config . use_legacy_events = ( ENV [ 'USE_LEGACY_EVENTS' ] == 'true' )
142142
143- if ENV [ 'DISABLE_ACTIVE_STORAGE' ]
143+ if ( ENV [ 'DISABLE_ACTIVE_STORAGE' ] == 'true' )
144144 config . image_attachment_module = 'Spree::Image::PaperclipAttachment'
145145 config . taxon_attachment_module = 'Spree::Taxon::PaperclipAttachment'
146146 end
Original file line number Diff line number Diff line change 22
33require 'rails_helper'
44
5- unless ENV [ 'DISABLE_ACTIVE_STORAGE' ]
5+ unless ( ENV [ 'DISABLE_ACTIVE_STORAGE' ] == 'true' )
66 RSpec . describe Spree ::ActiveStorageAdapter ::Attachment do
77 describe '#variant' do
88 it "converts to resize_to_limit when definition doesn't contain any special symbol" do
Original file line number Diff line number Diff line change 3737 config . use_transactional_fixtures = true
3838
3939 config . before :suite do
40- FileUtils . rm_rf ( Rails . configuration . active_storage . service_configurations [ :test ] [ :root ] ) unless ENV [ 'DISABLE_ACTIVE_STORAGE' ]
40+ FileUtils . rm_rf ( Rails . configuration . active_storage . service_configurations [ :test ] [ :root ] ) unless ( ENV [ 'DISABLE_ACTIVE_STORAGE' ] == 'true' )
4141 DatabaseCleaner . clean_with :truncation
4242 end
4343
You can’t perform that action at this time.
0 commit comments