[rspec-users] Testing arbitrary post action parameters

Pat Maddox pergesu at gmail.com
Fri Jan 16 17:46:17 EST 2009

On Fri, Jan 16, 2009 at 12:25 PM, James Byrne <lists at ruby-forum.com> wrote:
> Pat Maddox wrote:
>> I assume you don't though, cause that'd be kinda weird.  How about
>> passing it in the POST params:
>> put users_url(user), :user => {:administrator => true}
>> Something along those lines...
> That is the problem, I am not sure what syntax to use int the step
> definition.

put users_url(user), :user => {:administrator => true}
not work?

Also, I would probably be more likely to test this in a controller
spec (where I know for sure the line I pasted will work), but I
totally understand the desire to put it in an acceptance test.


More information about the rspec-users mailing list