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

2008-08-05 Thread J2M
I'm not having much luck posting here, every other reply seems to go astray! So if I double post sorry! I'm using Rails 2.1 Rspec 1.1.4 Any ideas why this isn't giving the correct response in Rspec but is in the wild? On Aug 4, 4:31 pm, J2M [EMAIL PROTECTED] wrote: On Aug 4, 5:16 am, Steve

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

2008-08-04 Thread J2M
On Aug 4, 5:16 am, Steve [EMAIL PROTECTED] wrote: 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

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