Module: Test::Unit::Util::BacktraceFilter
- Defined in:
- lib/test/spec.rb
Overview
Hide Test::Spec interna in backtraces.
Constant Summary collapse
- TESTSPEC_PREFIX =
:nodoc:
__FILE__.gsub(/spec\.rb\Z/, '')
Instance Method Summary collapse
Instance Method Details
#filter_backtrace(backtrace, prefix = nil) ⇒ Object
617 618 619 620 621 622 623 624 |
# File 'lib/test/spec.rb', line 617 def filter_backtrace(backtrace, prefix=nil) if prefix.nil? testspec_filter_backtrace(testspec_filter_backtrace(backtrace), TESTSPEC_PREFIX) else testspec_filter_backtrace(backtrace, prefix) end end |
#testspec_filter_backtrace ⇒ Object
614 |
# File 'lib/test/spec.rb', line 614 alias :testspec_filter_backtrace :filter_backtrace |