[Rails] *dont* empty the database...?

Dick Davies rasputnik at gmail.com
Fri Apr 7 10:53:59 GMT 2006


On 07/04/06, Alex Young <alex at blackkettle.org> wrote:
> Alan Bullock wrote:
> > I'd like to test against a very large dataset - is there anyway to prevent
> > the data in the test database being destroyed on each test run? storing the
> > dataset in fixtures causes the tests to take several minutes to complete,
> > even using csv fixtures, and that's just for one test case!

Does your db support transactions? check test/test_helper.rb says

  self.use_transactional_fixtures = true


--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/


More information about the Rails mailing list