On Fri, Jan 16, 2009 at 12:25 PM, James Byrne <[email protected]> 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.
Does
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.
Pat
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users