Preloading fixtures plugin

Plugin details

PreloadFixtures simply preloads ALL your fixtures at the beginning of your test cycle. It forces the system into using transactional fixtures, which you'll need because you're only loading the fixtures once!

Websitehttp://www.elctech.com/2007/5/31/preloading-fixtures Repositoryhttps://wush.net/svn/public/preload_fixtures/ Author David Stevenson Tags Tests LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install https://wush.net/svn/public/preload_fixtures/

Add the following to test/test_helper.rb

PreloadFixtures.preload!
PreloadFixtures.instantiate!(Test::Unit::TestCase)



The "fixtures" function in a test is now overloaded to do nothing. All fixtures in the directory will be loaded once and then the tests will be run.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 8 months ago