[Rails] Re: Where is #put functional test method documented?

2009-01-31 Thread daybrea...@gmail.com
Even though you figured out what was wrong in the middle of posting, thanks for posting it anyways. Google search indexed this post, and was one of the first results helping me solve this exact issue. -Brad On Dec 31 2008, 5:02 pm, "Patrick Doyle" wrote: > > users(:quentin) is instantiating the

[Rails] Re: Where is #put functional test method documented?

2008-12-31 Thread Patrick Doyle
> > users(:quentin) is instantiating the user based on your users.yml fixture. > Instead, you'll want to query the database for the user. > Yeah, that dawned on me as I wrote my email. But at that point I still wanted to find a better way to search the documentation. RailsBrain looks like a great

[Rails] Re: Where is #put functional test method documented?

2008-12-31 Thread Craig Demyanovich
On Wed, Dec 31, 2008 at 3:26 PM, Patrick Doyle wrote: > I am trying to figure out why the following test case doesn't work: > > def test_should_allow_admin_to_become_non_admin > put :update, :id => users(:quentin).id, :quentin => {:admin => false} > assert users(:quentin).admin == false