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 undefined_method # NameError 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