Module: Teaspoon::Engine::ExceptionHandling

Defined in:
lib/teaspoon/engine.rb

Class Method Summary collapse

Class Method Details

.add_rails_handlingObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/teaspoon/engine.rb', line 72

def self.add_rails_handling
  return unless using_phantomjs?

  # debugging should be off to display errors in the suite_controller
  # Rails.application.config.assets.debug = false

  # we want rails to display exceptions
  Rails.application.config.action_dispatch.show_exceptions = true

  # override the render exception method in ActionDispatch to raise a javascript exception
  render_exceptions_with_javascript
end