search for: fooexceptioncontrol

Displaying 1 result from an estimated 1 matches for "fooexceptioncontrol".

2008 Jan 22
0
Trying to spec ExceptionNotifiable behavior
Hello List. I''m trying to overwrite part of ExceptionNotifiable (ExceptionNotification plugin) to render customized error 500 pages based on browser agents. For this, I''ve created a fake controller that inherits directly from ActionController::Base: class FooExceptionController < ActionController::Base include ExceptionNotifiable # this action should not fail, used for controller.expect_render(...) checking def ok_action render(:file => "#{RAILS_ROOT}/public/ok.html") end # this action should raise an unexpected exception def fail_acti...