File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ def suppress_default_config
89
89
def restore_default_config
90
90
FileUtils . rm_rf ( "#{ app_path } /config/environments" )
91
91
FileUtils . mv ( "#{ app_path } /config/__environments__" , "#{ app_path } /config/environments" )
92
+ remove_from_env_config "production" , "config.log_level = :error"
92
93
end
93
94
94
95
test "Rails.env does not set the RAILS_ENV environment variable which would leak out into rake tasks" do
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ def build_app(options = {})
145
145
add_to_env_config :development , "config.action_view.annotate_rendered_view_with_filenames = false"
146
146
147
147
remove_from_env_config ( "development" , "config.generators.apply_rubocop_autocorrect_after_generate!" )
148
+ add_to_env_config :production , "config.log_level = :error"
148
149
end
149
150
150
151
def teardown_app
@@ -262,7 +263,7 @@ def self.name; "RailtiesTestApp"; end
262
263
@app . config . eager_load = false
263
264
@app . config . session_store :cookie_store , key : "_myapp_session"
264
265
@app . config . active_support . deprecation = :log
265
- @app . config . log_level = :info
266
+ @app . config . log_level = :error
266
267
@app . config . secret_key_base = "b3c631c314c0bbca50c1b2843150fe33"
267
268
268
269
yield @app if block_given?
You can’t perform that action at this time.
0 commit comments