[rspec-devel] [ rspec-Feature Requests-11818 ] Have mode for Rails Error Handling
noreply at rubyforge.org
noreply at rubyforge.org
Wed Aug 8 00:55:55 EDT 2007
Feature Requests item #11818, was opened at 2007-06-24 23: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: Brian Takita (btakita)
Date: 2007-08-07 21:55
Message:
That looks good to me.
----------------------------------------------------------------------
Comment By: David Chelimsky (dchelimsky)
Date: 2007-06-24 23:22
Message:
Well - maybe the exclamation point doesn't make sense except when the method is being called directly on ActionController::Rescue. But I think we should either always have the exclamation point or never. Otherwise it'll just get confusing.
----------------------------------------------------------------------
Comment By: David Chelimsky (dchelimsky)
Date: 2007-06-24 23: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