Permalink
Browse files

use Rails backtrace in tests

  • Loading branch information...
1 parent ca519ee commit d91bee80beae4e92b2b015599771310cebc3a143 Francesco Rodriguez committed Oct 6, 2012
Showing with 5 additions and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/backtrace_cleaner.rb
  2. +4 −0 railties/lib/rails/test_help.rb
@@ -45,6 +45,7 @@ def clean(backtrace, kind = :silent)
filtered
end
end
+ alias :filter :clean
# Adds a filter from the block provided. Each line in the backtrace will be
# mapped against this filter.
@@ -7,6 +7,10 @@
require 'action_controller/test_case'
require 'action_dispatch/testing/integration'
+# Config Rails backtrace in tests.
+require 'rails/backtrace_cleaner'
+MiniTest.backtrace_filter = Rails.backtrace_cleaner
+
# Enable turn if it is available
begin
require 'turn'

0 comments on commit d91bee8

Please sign in to comment.