Re: [rspec-users] testing 404 redirects in the controller with rspec beta 19

2010-08-09 Thread Christoffer Klang
Ah, that looks quite interesting. I'd prefer to let rails do the 404 error handling (adding more magic to the already overwhelming amount is to much for my brain at this point ;), but if I'll have to handle it myself this looks like a viable solution. Thanks, /Christoffer On Aug 9, 2010, at 1

Re: [rspec-users] testing 404 redirects in the controller with rspec beta 19

2010-08-09 Thread Phillip Koebbe
On 2010-08-09 1:29 AM, 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 for unfound r

[rspec-users] testing 404 redirects in the controller with rspec beta 19

2010-08-08 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