mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
set ActiveSupport::Deprecation.debug = true to see backtraces for deprecation callers. off by default. on for Rails tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
29f04510e9
commit
be54075956
5 changed files with 18 additions and 1 deletions
|
@ -3,5 +3,8 @@ require 'test/unit'
|
|||
$:.unshift "#{File.dirname(__FILE__)}/../lib"
|
||||
require 'action_mailer'
|
||||
|
||||
# Show backtraces for deprecated behavior for quicker cleanup.
|
||||
ActiveSupport::Deprecation.debug = true
|
||||
|
||||
$:.unshift "#{File.dirname(__FILE__)}/fixtures/helpers"
|
||||
ActionMailer::Base.template_root = "#{File.dirname(__FILE__)}/fixtures"
|
||||
|
|
|
@ -8,6 +8,9 @@ require 'action_controller'
|
|||
require 'breakpoint'
|
||||
require 'action_controller/test_process'
|
||||
|
||||
# Show backtraces for deprecated behavior for quicker cleanup.
|
||||
ActiveSupport::Deprecation.debug = true
|
||||
|
||||
ActionController::Base.logger = nil
|
||||
ActionController::Base.ignore_missing_templates = false
|
||||
ActionController::Routing::Routes.reload rescue nil
|
||||
ActionController::Routing::Routes.reload rescue nil
|
||||
|
|
|
@ -9,6 +9,10 @@ require 'action_web_service'
|
|||
require 'action_controller'
|
||||
require 'action_controller/test_process'
|
||||
|
||||
# Show backtraces for deprecated behavior for quicker cleanup.
|
||||
ActiveSupport::Deprecation.debug = true
|
||||
|
||||
|
||||
ActionController::Base.logger = Logger.new("debug.log")
|
||||
ActionController::Base.ignore_missing_templates = true
|
||||
|
||||
|
|
|
@ -8,6 +8,10 @@ require 'active_support/binding_of_caller'
|
|||
require 'active_support/breakpoint'
|
||||
require 'connection'
|
||||
|
||||
# Show backtraces for deprecated behavior for quicker cleanup.
|
||||
ActiveSupport::Deprecation.debug = true
|
||||
|
||||
|
||||
QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type') unless Object.const_defined?(:QUOTED_TYPE)
|
||||
|
||||
class Test::Unit::TestCase #:nodoc:
|
||||
|
|
|
@ -2,3 +2,6 @@ require 'test/unit'
|
|||
|
||||
$:.unshift "#{File.dirname(__FILE__)}/../lib"
|
||||
require 'active_support'
|
||||
|
||||
# Show backtraces for deprecated behavior for quicker cleanup.
|
||||
ActiveSupport::Deprecation.debug = true
|
||||
|
|
Loading…
Reference in a new issue