Sha256: 124afcad107e2501a8d0d9d01d15c83d6e20024c17fa04c35ac060733e4ade13
Contents?: true
Size: 486 Bytes
Versions: 54
Compression:
Stored size: 486 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' require 'spec/runner/formatter/progress_bar_formatter' # Example of a formatter with custom bactrace printing. Run me with: # ruby bin/spec examples/failing -r examples/passing/custom_formatter.rb -f CustomFormatter class CustomFormatter < Spec::Runner::Formatter::ProgressBarFormatter def backtrace_line(line) line.gsub(/([^:]*\.rb):(\d*)/) do "<a href=\"file://#{File.expand_path($1)}\">#{$1}:#{$2}</a> " end end end
Version data entries
54 entries across 54 versions & 6 rubygems