Testing is all about creating and destroying data. And you may learn
soon that the best thing to do is to have a separate database for
testing. Read the paragraph 2.1 of this page for a better
understanding. http://guides.rubyonrails.org/testing.html#the-three-environments

On Jul 29, 2:43 am, rilindo foster <[email protected]> wrote:
> Hi Guys,
>
> Is it normal for Rails to create and delete the test database during
> rake tests? It seems to be case when I started to run it.
>
> Is there a way for the Rails not to create and delete databases during
> testing? I am little uncomfortable granting that much power to the
> rails user for testing - I would rather that it use the existing
> database and just delete/recreate tables instead.
>
>  - Rilindo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to