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

Version Path
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/examples/passing/custom_formatter.rb
middleman-0.10.16 vendor/gems/gems/rspec-1.2.9/examples/passing/custom_formatter.rb
middleman-0.10.15 vendor/gems/gems/rspec-1.2.9/examples/passing/custom_formatter.rb
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/examples/passing/custom_formatter.rb
middleman-0.10.14 vendor/gems/gems/rspec-1.2.9/examples/passing/custom_formatter.rb
ageweke-rspec-1.2.9 examples/passing/custom_formatter.rb
rspec-1.2.9 examples/passing/custom_formatter.rb