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

Version Path
picolena-0.1.7 rails_plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.8 rails_plugins/rspec/examples/pure/custom_formatter.rb
pictrails-0.5.0 vendor/plugins/rspec/examples/pure/custom_formatter.rb
radiant-0.6.5.1 vendor/plugins/rspec/examples/pure/custom_formatter.rb
radiant-0.6.5 vendor/plugins/rspec/examples/pure/custom_formatter.rb
radiant-0.6.6 vendor/plugins/rspec/examples/pure/custom_formatter.rb
radiant-0.6.7 vendor/plugins/rspec/examples/pure/custom_formatter.rb
radiant-0.6.8 vendor/plugins/rspec/examples/pure/custom_formatter.rb
radiant-0.6.9 vendor/plugins/rspec/examples/pure/custom_formatter.rb
rspec-0.0.10 examples/pure/custom_formatter.rb
rspec-1.1.0 examples/pure/custom_formatter.rb
rspec-1.1.1 examples/pure/custom_formatter.rb
rspec-1.1.10 examples/pure/custom_formatter.rb
rspec-1.1.5 examples/pure/custom_formatter.rb
rspec-1.1.7 examples/pure/custom_formatter.rb
rspec-1.1.11 examples/pure/custom_formatter.rb
rspec-1.1.2 examples/pure/custom_formatter.rb
rspec-1.1.3 examples/pure/custom_formatter.rb
rspec-1.1.4 examples/pure/custom_formatter.rb
rspec-1.1.6 examples/pure/custom_formatter.rb