search for: ok_act

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

Did you mean: k_act
2008 Jan 22
0
Trying to spec ExceptionNotifiable behavior
...d 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_action raise StandardError.new("manually raised exception") end end I''m running with RSpec 1.0.8 (pistoned as plugin) and respective R...