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

Version Path
dchelimsky-rspec-1.1.11.1 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.11.2 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.11.3 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.11.4 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.11.5 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.11.6 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.11.7 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.12 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.1 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.13 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.2 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.3 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.4 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.5 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.6 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.7 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.8 examples/passing/custom_formatter.rb
dchelimsky-rspec-1.1.99.9 examples/passing/custom_formatter.rb
newbamboo-evented-rspec-1.1.12 examples/passing/custom_formatter.rb
newbamboo-rspec-1.1.12 examples/passing/custom_formatter.rb