Sha256: c05a2f437dae2ed331ecd4dc12bc43bb04ec4ea6a9d5d39c65b55f3d5c504aaa

Contents?: true

Size: 842 Bytes

Versions: 7

Compression:

Stored size: 842 Bytes

Contents

require 'turnip_formatter'

RSpec.configure do |config|
  config.add_formatter RSpecTurnipFormatter, 'report.html'
end

Dir.glob(File.dirname(__FILE__) + '/steps/**/*steps.rb') { |f| load f, true }

RSpec.configure do |config|
  config.before(:example, before_hook_error: true) do
    #
    # Workaround for JRuby <= 9.1.7.0
    #
    # https://github.com/jruby/jruby/issues/4467
    # https://github.com/rspec/rspec-core/pull/2381
    #
    begin
      undefined_method # NameError
    rescue => e
      raise e
    end
  end

  config.after(:example, after_hook_error: true) do
    expect(true).to be false # RSpec Matcher Error
  end
end

# TurnipFormatter.configure do |config|
#   config.title = 'My Report'
#   config.add_stylesheet File.dirname(__FILE__) + '/foo.css'
#   config.add_javascript File.dirname(__FILE__) + '/bar.js'
# end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
turnip_formatter-0.8.0 example/spec/spec_helper.rb
turnip_formatter-0.7.2 example/spec/spec_helper.rb
turnip_formatter-0.7.1 example/spec/spec_helper.rb
turnip_formatter-0.7.0 example/spec/spec_helper.rb
turnip_formatter-0.6.1 example/spec/spec_helper.rb
turnip_formatter-0.6.0 example/spec/spec_helper.rb
turnip_formatter-0.6.0.pre.beta.7 example/spec/spec_helper.rb