1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Set the default log_level to info in all tests

This is a follow-up to 116de07. That change was for two reasons: 1) speed up the
tests by reducing the amount of log lines 2) avoid a deprecation warning from
a6de6f5.

This setting need to be on the basic app too, otherwise the deprecation warning
will show up on other unrelated test cases.
This commit is contained in:
Godfrey Chan 2014-11-25 01:59:34 -08:00
parent 3b8a2a0c6a
commit 6f08eeb6e8

View file

@ -163,6 +163,7 @@ module TestHelpers
app.secrets.secret_key_base = "3b7cd727ee24e8444053437c36cc66c4"
app.config.session_store :cookie_store, key: "_myapp_session"
app.config.active_support.deprecation = :log
app.config.log_level = :info
yield app if block_given?
app.initialize!