Class: Rails::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/rails/application.rb

Overview

Make sure the ActionDispatch::ShowExceptions middleware is always enabled, regardless of what is in config/environments/test.rb Instead we are overriding ActionDispatch::ShowExceptions to be able to toggle whether or not exceptions are raised.

Instance Method Summary collapse

Instance Method Details

#__cucumber_orig_initialize__Object



8
# File 'lib/cucumber/rails/application.rb', line 8

alias __cucumber_orig_initialize__ initialize!

#initialize!Object



10
11
12
13
14
15
16
# File 'lib/cucumber/rails/application.rb', line 10

def initialize!
  ad = config.action_dispatch
  def ad.show_exceptions
    true
  end
  __cucumber_orig_initialize__
end