diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-07 13:44:47 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-07 13:45:47 +0100 |
commit | 345e0b274cb384f8d453256e90dd105e6c2ffa19 (patch) | |
tree | 257bb4a798dffe86f2da5bac825cf71202041cbc /activesupport | |
parent | de69c798db5535f19bfd585da83117fe1dacd6d9 (diff) | |
download | rails-345e0b274cb384f8d453256e90dd105e6c2ffa19.tar.gz rails-345e0b274cb384f8d453256e90dd105e6c2ffa19.tar.bz2 rails-345e0b274cb384f8d453256e90dd105e6c2ffa19.zip |
Add backtrace cleaner on test unit railtie.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index 1646891e00..ab30984d62 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -21,12 +21,6 @@ module ActiveSupport alias_method :method_name, :name if method_defined? :name alias_method :method_name, :__name__ if method_defined? :__name__ else - # TODO: Figure out how to get the Rails::BacktraceFilter into minitest/unit - if defined?(Rails) && ENV['BACKTRACE'].nil? - require 'rails/backtrace_cleaner' - Test::Unit::Util::BacktraceFilter.module_eval { include Rails::BacktraceFilterForTestUnit } - end - Assertion = Test::Unit::AssertionFailedError require 'active_support/testing/default' |