demo/config/environments/test.rb in bootstrap_form-4.0.0 vs demo/config/environments/test.rb in bootstrap_form-4.1.0

- old
+ new

@@ -13,11 +13,11 @@ config.eager_load = false # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{1.hour.to_i}" + "Cache-Control" => "public, max-age=#{1.hour.to_i}" } # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false @@ -27,12 +27,10 @@ # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false # Store uploaded files on the local file system in a temporary directory - if config.respond_to?(:active_storage) - config.active_storage.service = :test - end + config.active_storage.service = :test if config.respond_to?(:active_storage) config.action_mailer.perform_caching = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the