search for: use_rails_error_handling

Displaying 4 results from an estimated 4 matches for "use_rails_error_handling".

2008 Aug 21
1
rescue_from failing to rescue [from]
Having some weird failures of rescue_from in all my specs. They still rescue in actual usage, just not in my specs. Made a pastie of the code: http://pastie.org/257399 This is with latest [as of 1:00 PM Eastern time zone] rspec/rspec-rails/edge. Thanks in advance for any replies on this. RSL -- Posted via http://www.ruby-forum.com/.
2008 Jan 22
0
Trying to spec ExceptionNotifiable behavior
...ird fails with "manually raised exception" on the output: StandardError in ''FooExceptionController dealing with exceptions should render error template'' manually raised exception I''ve looked all over, for 1.0.8 and 1.1.2, but the only reference I could find is use_rails_error_handling! in rdoc, but no Spec::Runner configuration option or before behavior that could be change. (http://rspec.info/rdoc-rails/classes/ActionController/Rescue.html#M000007) What I''m doing wrong? What I''m missing? Thanks in advance for your time. Regards, -- Luis Lavena Multimedia sy...
2009 Mar 15
0
rspec-rails 1.2.0 Released
...and stub_render have been removed. * Both of these methods were deprecated in rspec-rails-1.1.5, released in Sept, 2008. * { route_for(args).should == "/path" } now delegates to assert_generates (in rails) * see Upgrade.markdown for more information * deprecations * controller.use_rails_error_handling! is deprecated * use rescue_action_in_public! (from rails) instead * enhancements * Adding status codes to redirect_to matcher (Damian Janowski). Closes #570. * Initialize current URL before executing any examples in a ViewExampleGroup (Wilson Bilkovich). Closes #654. * Support query st...
2008 Feb 13
5
Example controller spec no worky?
I''m trying to spec a dead simple "show non-existent record should render 404" case, but it seems the RecordNotFound exception is making it impossible for some reason. #controller def show @event = Event.find(params[:id]) end #spec - pretty much straight from the rspec site before do Event.stub!(:find) get :show, :id => ''broken'' end #