changeset 15: | 64acf98d15f4 |
author: | moriq@moriq.com |
date: | Mon Mar 10 10:12:58 2008 +0900 (16 years ago) |
permissions: | -rw-r--r-- |
description: | add plugins rspec |
1require 'spec/runner/formatter/html_formatter'23module Spec4 module Runner5 module Formatter6 # Formats backtraces so they're clickable by TextMate7 class TextMateFormatter < HtmlFormatter8 def backtrace_line(line)9 line.gsub(/([^:]*\.rb):(\d*)/) do10 "<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "11 end12 end13 end14 end15 end16end