Class: RSpock::Minitest::BacktraceFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/rspock/minitest/backtrace_filter.rb

Instance Method Summary collapse

Constructor Details

#initializeBacktraceFilter

Returns a new instance of BacktraceFilter.



7
8
9
# File 'lib/rspock/minitest/backtrace_filter.rb', line 7

def initialize
  @backtrace_filter = RSpock::BacktraceFilter.new
end

Instance Method Details

#filter(backtrace) ⇒ Object



11
12
13
# File 'lib/rspock/minitest/backtrace_filter.rb', line 11

def filter(backtrace)
  backtrace.map { |line| @backtrace_filter.filter_string(line) }
end