Re: [rspec-users] issue with rescue_action_in_public! and testing 404 responses

2010-08-15 Thread John Firebaugh
On Aug 9, 7:21 pm, David Chelimsky wrote: > It's up to you to handle the error in the controller. Something like this in > ApplicationController: > >   rescue_from ActiveRecord::RecordNotFound do >     render '/404.html', :layout => false, :status => :not_found >   end Actually, I believe this i

Re: [rspec-users] issue with rescue_action_in_public! and testing 404 responses

2010-08-09 Thread David Chelimsky
On Aug 8, 2010, at 2:53 PM, christofferklang wrote: > Hello, > I'm new to rails and I'm trying to wrap my heads around how to spec > controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19). > > The problem I've run into is when I want to test that my controllers respond > with a 404

[rspec-users] issue with rescue_action_in_public! and testing 404 responses

2010-08-09 Thread christofferklang
Hello, I'm new to rails and I'm trying to wrap my heads around how to spec controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19). The problem I've run into is when I want to test that my controllers respond with a 404 for unfound records. Whenever I run the spec, the ActiveRecor