Topic: Unit test and ActiveRecord

Hello,

I'm new in Ruby on Rails developement and i try to test my models with Unit Tests. I populated a test database with fixtures but when i call an ActiveRecord function like find or create in a TestCase, it find or create objects in development database. I don't want to mess with this database so my question is how can i create/read/delete only data from test database?

Thanks

ps: sorry for my english

Re: Unit test and ActiveRecord

Fixtures don't go in your test database; they go in the test/fixtures folder. http://railscasts.com/episodes/81-fixtures-in-rails-2-0

Re: Unit test and ActiveRecord

yes i know, i see that when i run a test, fixtures are insert in my test database
but i doesn't answer my question, but thanks !