class RSpec::Core::Formatters::HtmlSnippetExtractor

def snippet(backtrace)

Other tags:
    See: #post_process -

Returns:
  • (String) - highlighted code snippet indicating where the test

Parameters:
  • backtrace (String) -- the backtrace from a test failure

Other tags:
    Api: - private
def snippet(backtrace)
  raw_code, line = snippet_for(backtrace[0])
  highlighted = @@converter.convert(raw_code)
  post_process(highlighted, line)
end