[rspec-devel] [ rspec-Feature Requests-11818 ] Have mode for Rails Error Handling

noreply at rubyforge.org noreply at rubyforge.org
Mon Jun 25 02:20:31 EDT 2007


Feature Requests item #11818, was opened at 2007-06-25 06:13
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=11818&group_id=797

Category: rails plugin
Group: None
Status: Open
Priority: 3
Submitted By: Brian Takita (btakita)
Assigned to: Nobody (None)
Summary: Have mode for Rails Error Handling

Initial Comment:
Currently we default to raise an error as it happens.

There should be a way to use Rail's default error handling. This is needed to verify that error specific behaviour is occurring, such as exception notification.

To start things off, I added ActionController::Rescue#use_rails_error_handling! and ActionController::Rescue#use_rails_error_handling? to do this (Rev 2128).

Thoughts?

----------------------------------------------------------------------

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-06-25 06:20

Message:
Seems reasonable. I think that same method should then be made available via config:

Spec::Runner.configure do |config|
  config.use_rails_error_handling!
end

or directly in a given behaviour:

describe SomeController do
  use_rails_error_handling!
  ...
end

WDYT?

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=11818&group_id=797


More information about the rspec-devel mailing list