Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-03 Thread Pat Maddox
On Fri, Aug 1, 2008 at 4:41 AM, Bastien [EMAIL PROTECTED] wrote: Thanks for your help Aslak, but I still didn't manage to make it pass get :show, :id=34 it sends me this error then : No route matches {:action=show, :controller=surveys/report, :id=34} What's your controller's name? In

[rspec-users] Rspec doesn't pickup the status code correctly.

2008-08-03 Thread J2M
I'm setting the status code on a controller action but rspec doesn't seem to be catching it in my spec. It works in the browser. This is the controller method, called via xhr with header Accept: 'application/json' def validate account = Account.new(:login = params[:login])

Re: [rspec-users] Rspec doesn't pickup the status code correctly.

2008-08-03 Thread Steve
J2M wrote: I'm setting the status code on a controller action but rspec doesn't seem to be catching it in my spec. It works in the browser. This is the controller method, called via xhr with header Accept: 'application/json' def validate account = Account.new(:login = params[:login])