Do not show deprecation errors in test env

#206
This commit is contained in:
Artur Beljajev 2016-10-20 23:20:04 +03:00
parent 2e9724f50d
commit f2f23a623b

View file

@ -31,8 +31,7 @@ Rails.application.configure do
# ActionMailer::Base.deliveries array. # ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test config.action_mailer.delivery_method = :test
# Print deprecation notices to the stderr. ActiveSupport::Deprecation.silenced = true
config.active_support.deprecation = :stderr
# For rails-settings-cached conflict # For rails-settings-cached conflict
config.cache_store = :file_store, 'tmp/cache_test' config.cache_store = :file_store, 'tmp/cache_test'
@ -42,7 +41,7 @@ Rails.application.configure do
# Raises error for missing translations # Raises error for missing translations
# config.action_view.raise_on_missing_translations = true # config.action_view.raise_on_missing_translations = true
# The available log levels are: :debug, :info, :warn, :error, :fatal, and :unknown, # The available log levels are: :debug, :info, :warn, :error, :fatal, and :unknown,
# corresponding to the log level numbers from 0 up to 5 respectively # corresponding to the log level numbers from 0 up to 5 respectively
config.log_level = :debug config.log_level = :debug
@ -70,4 +69,4 @@ end
# In this mode, any jobs you queue will be run in the same thread, synchronously # In this mode, any jobs you queue will be run in the same thread, synchronously
# (that is, MyJob.enqueue runs the job and won't return until it's completed). # (that is, MyJob.enqueue runs the job and won't return until it's completed).
# This makes your application's behavior easier to test # This makes your application's behavior easier to test
Que.mode = :sync Que.mode = :sync