Skip to Content Skip to Search

class Minitest::BacktraceFilterWithFallback

Public class methods

Source code GitHub
# File railties/lib/minitest/rails_plugin.rb, line 9
def initialize(preferred, fallback)
  @preferred = preferred
  @fallback = fallback
end

Public instance methods

Source code GitHub
# File railties/lib/minitest/rails_plugin.rb, line 14
def filter(backtrace)
  filtered = @preferred.filter(backtrace)
  filtered = @fallback.filter(backtrace) if filtered.empty?
  filtered
end

Definition files