Skip to content

Commit aaf5079

Browse files
committed
chore : Set false storage config option for test
1 parent 0c9b391 commit aaf5079

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

config/environments/test.rb

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,10 @@
44
# and recreated between test runs. Don't rely on the data there!
55

66
Rails.application.configure do
7-
# Settings specified here will take precedence over those in config/application.rb.
8-
9-
# While tests run files are not watched, reloading is not necessary.
107
config.enable_reloading = false
118

12-
# Eager loading loads your entire application. When running a single test locally,
13-
# this is usually not necessary, and can slow down your test suite. However, it's
14-
# recommended that you enable it in continuous integration systems to ensure eager
15-
# loading is working properly before deploying your code.
169
config.eager_load = ENV["CI"].present?
1710

18-
# Configure public file server for tests with cache-control for performance.
19-
config.public_file_server.headers = { "cache-control" => "public, max-age=3600" }
20-
21-
# Show full error reports.
2211
config.consider_all_requests_local = true
2312
config.cache_store = :null_store
2413

@@ -29,25 +18,10 @@
2918
config.action_controller.allow_forgery_protection = false
3019

3120
# Store uploaded files on the local file system in a temporary directory.
32-
config.active_storage.service = :test
33-
34-
# Tell Action Mailer not to deliver emails to the real world.
35-
# The :test delivery method accumulates sent emails in the
36-
# ActionMailer::Base.deliveries array.
37-
config.action_mailer.delivery_method = :test
21+
# config.active_storage.service = :test
22+
config.active_storage.draw_routes = false
3823

39-
# Set host to be used by links generated in mailer templates.
40-
config.action_mailer.default_url_options = { host: "example.com" }
41-
42-
# Print deprecation notices to the stderr.
4324
config.active_support.deprecation = :stderr
4425

45-
# Raises error for missing translations.
46-
# config.i18n.raise_on_missing_translations = true
47-
48-
# Annotate rendered view with file names.
49-
# config.action_view.annotate_rendered_view_with_filenames = true
50-
51-
# Raise error when a before_action's only/except options reference missing actions.
5226
config.action_controller.raise_on_missing_callback_actions = true
5327
end

0 commit comments

Comments
 (0)