Displaying 1 result from an estimated 1 matches for "fail_action".
Did you mean:
  fai_action
  
2008 Jan 22
0
Trying to spec ExceptionNotifiable behavior
...onController < 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
REL_1_0_8 rspec_on_rails
All the specs are ran with ''script/spec -R -c spec''
This is my spec:
describe FooExceptionController,...