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
rspec-instructure-1.3.3 examples/passing/custom_formatter.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/examples/passing/custom_formatter.rb
rspec-1.3.2 examples/passing/custom_formatter.rb
rspec-1.3.1 examples/passing/custom_formatter.rb
rspec-1.3.1.rc examples/passing/custom_formatter.rb
rspec-1.3.0 examples/passing/custom_formatter.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/examples/passing/custom_formatter.rb
media-path-0.1.2 vendor/rspec/examples/passing/custom_formatter.rb
simple-templater-0.0.1.3 vendor/rspec/examples/passing/custom_formatter.rb
pupu-0.0.2.pre vendor/rspec/examples/passing/custom_formatter.rb
media-path-0.1.1.pre vendor/rspec/examples/passing/custom_formatter.rb
simple-templater-0.0.1.2 vendor/rspec/examples/passing/custom_formatter.rb
media-path-0.1.1 vendor/rspec/examples/passing/custom_formatter.rb
simple-templater-0.0.1.1 vendor/rspec/examples/passing/custom_formatter.rb
pupu-0.0.2 vendor/rspec/examples/passing/custom_formatter.rb
rango-0.0.6 vendor/rspec/examples/passing/custom_formatter.rb
rango-0.1.pre vendor/rspec/examples/passing/custom_formatter.rb
pupu-0.0.1 vendor/rspec/examples/passing/custom_formatter.rb
media-path-0.1 vendor/rspec/examples/passing/custom_formatter.rb
simple-templater-0.0.1 vendor/rspec/examples/passing/custom_formatter.rb