Well, I guess I overlooked this statement at the beginning of the section:
=== We’ll accomplish this goal with a user factory, which is a convenient way to define a user object and insert it into our test database. === So calling the factory like this: @user = Facotory(:user) does two things: 1) assigns a user to @user 2) inserts the user in the test db (You never see anything in the test db because the tests roll back changes to the db after each test.) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

