Sha256: ab97d8c6d4e865411ef1fac18ece70378fbb6fc7ca797a2a6885e30b2782bed1
Contents?: true
Size: 507 Bytes
Versions: 27
Compression:
Stored size: 507 Bytes
Contents
require 'rspec/core/formatters/html_formatter' module RSpec module Core module Formatters # Formats backtraces so they're clickable by TextMate class TextMateFormatter < HtmlFormatter def backtrace_line(line) if line = super(line) line.sub!(/([^:]*\.e?rb):(\d*)/) do "<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> " end line end end end end end end
Version data entries
27 entries across 27 versions & 3 rubygems