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
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])
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])