1 require 'spec/runner/formatter/html_formatter'
6 # Formats backtraces so they're clickable by TextMate
7 class TextMateFormatter < HtmlFormatter
8 def backtrace_line(line)
9 line.gsub(/([^:]*\.rb):(\d*)/) do
10 "<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "