Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set ActiveSupport::Deprecation.debug = true to see backtraces for dep…

…recation callers. off by default. on for Rails tests.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit be54075956a14c05ec7a7249bed5d5c49034cc8d 1 parent 29f0451
@jeremy jeremy authored
View
3  actionmailer/test/abstract_unit.rb
@@ -3,5 +3,8 @@
$:.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"
View
5 actionpack/test/abstract_unit.rb
@@ -8,6 +8,9 @@
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
View
4 actionwebservice/test/abstract_unit.rb
@@ -9,6 +9,10 @@
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
View
4 activerecord/test/abstract_unit.rb
@@ -8,6 +8,10 @@
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:
View
3  activesupport/test/abstract_unit.rb
@@ -2,3 +2,6 @@
$:.unshift "#{File.dirname(__FILE__)}/../lib"
require 'active_support'
+
+# Show backtraces for deprecated behavior for quicker cleanup.
+ActiveSupport::Deprecation.debug = true
Please sign in to comment.
Something went wrong with that request. Please try again.