Class: Cramp::Action
- Inherits:
-
Object
- Object
- Cramp::Action
- Defined in:
- lib/rspec/cramp/extensions/cramp/action.rb
Instance Method Summary collapse
Instance Method Details
#handle_exception(exception) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rspec/cramp/extensions/cramp/action.rb', line 9 def handle_exception(exception) if @_state != :init handler = ExceptionHandler.new(@env, exception) render handler.pretty end old_handle_exception(exception) end |
#old_handle_exception ⇒ Object
8 |
# File 'lib/rspec/cramp/extensions/cramp/action.rb', line 8 alias :old_handle_exception :handle_exception |