Topic: Unit test and ActiveRecord


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?


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.

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 !