Sha256: 877422f139566bfbdae37f3239c7aaa98a1dd9eb24d2b65593055ad25e40e3b2
Contents?: true
Size: 478 Bytes
Versions: 58
Compression:
Stored size: 478 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 failing_examples -r examples/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
58 entries across 58 versions & 10 rubygems