Sha256: 81fd68d8a1bfe24fb05a60cd4ed2ad4b49c48e7de9d6e99405e0a9e94b797a05
Contents?: true
Size: 438 Bytes
Versions: 27
Compression:
Stored size: 438 Bytes
Contents
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
27 entries across 27 versions & 10 rubygems