Module: Megatest::Backtrace::InternalFilter

Defined in:
lib/megatest/backtrace.rb

Constant Summary collapse

INTERNAL_PATHS =
[
  File.expand_path("../assertions.rb:", __FILE__).freeze,
  File.expand_path("../runtime.rb:", __FILE__).freeze,
].freeze

Class Method Summary collapse

Class Method Details

.call(backtrace) ⇒ Object



12
13
14
15
16
# File 'lib/megatest/backtrace.rb', line 12

def call(backtrace)
  backtrace.reject do |frame|
    frame.start_with?(*INTERNAL_PATHS)
  end
end