Sha256: 8a2a4a2b3a3cb7970b7e861fc414bbb08d2830aa9aff822311dedb3dbfa9f728
Contents?: true
Size: 435 Bytes
Versions: 128
Compression:
Stored size: 435 Bytes
Contents
require 'spec/runner/formatter/html_formatter' module Spec module Runner module Formatter # Formats backtraces so they're clickable by TextMate class TextMateFormatter < HtmlFormatter def backtrace_line(line) line.gsub(/([^:]*\.rb):(\d*)/) do "<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> " end end end end end end
Version data entries
128 entries across 128 versions & 21 rubygems