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
dchelimsky-rspec-1.1.10 examples/pure/custom_formatter.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/examples/pure/custom_formatter.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/examples/pure/custom_formatter.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/examples/pure/custom_formatter.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/examples/pure/custom_formatter.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_formatter.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_formatter.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_formatter.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_formatter.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_formatter.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_formatter.rb
deckshuffler-0.0.2 vendor/plugins/rspec/examples/custom_formatter.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.1 rails_plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.0 rails_plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.3 rails_plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.4 rails_plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.2 rails_plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.5 rails_plugins/rspec/examples/pure/custom_formatter.rb
picolena-0.1.6 rails_plugins/rspec/examples/pure/custom_formatter.rb