Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9.2 minitest is now applying our backtrace cleaner in tests fi…

…xes #1575
  • Loading branch information...
commit ed1fb7a34949dede70e4e4a2eae020e9ce5d9dff 1 parent e7ec79d
@arunagw authored committed
View
15 railties/lib/rails/mini_test_backtrace_cleaner.rb
@@ -0,0 +1,15 @@
+require 'rails/backtrace_cleaner'
+
+module MiniTest
+
+ def self.filter_backtrace_with_rails(backtrace)
+ filter_backtrace_without_rails(Rails.backtrace_cleaner.clean(backtrace))
+ end
+
+ class << self
+ alias :filter_backtrace_without_rails :filter_backtrace
+ alias :filter_backtrace :filter_backtrace_with_rails
+ end
+
+end
+
View
2  railties/lib/rails/test_help.rb
@@ -14,6 +14,8 @@
end
if defined?(MiniTest)
+ require 'rails/mini_test_backtrace_cleaner'
+
# Enable turn if it is available
begin
require 'turn'
Please sign in to comment.
Something went wrong with that request. Please try again.