On Oct 31, 4:31 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On Oct 31, 2:09 am, daociyiyou <[EMAIL PROTECTED]> wrote:
>
> > > Sort of. It is stored in the test database, but the entire test runs
> > > within a transaction, which is rolled back at the end of the test.
>
> > > Fred
>
> > But rolled back at the end of this test method or the entire
> > controller test? You means I need not consider if the user is saved in
> > the test database table in the following test methods because the user
> > is not in the database at that time?
> > If the user is still in the database in the following test methods.i
> > need to consider it because of my application’s logic.
>
> Take a look in your app's test.log and you'll see for yourself.
>
> Fred
Thank you ,i have found the following words:[4;36;1mSQL (0.032000)
[0m [0;1mROLLBACK [0m
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---