Permalink
Browse files

Merge pull request #7861 from frodsan/test_backtrace

use Rails backtrace in tests
  • Loading branch information...
2 parents 62aff55 + d91bee8 commit 639efb93135c765dcf5c4aa09c30a8b4973c8421 @rafaelfranca rafaelfranca committed Oct 6, 2012
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
s.add_dependency('i18n', '~> 0.6')
s.add_dependency('multi_json', '~> 1.3')
s.add_dependency('tzinfo', '~> 0.3.33')
- s.add_dependency('minitest', '~> 4.0')
+ s.add_dependency('minitest', '~> 4.1')
end
@@ -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 639efb9

Please sign in to comment.