fixture_dependencies is a plugin that changes the way Rails uses fixtures in the following ways: - Fixtures can specify associations instead of foreign keys - Supports belongs_to, has_many, has_one, and habtm associations - Loads a fixture''s dependencies (associations with other fixtures) before the fixture itself so that foreign key constraints aren''t violated - Can specify individual fixtures to load per test or test suite - Loads fixtures on every test inside a transaction, so fixture information is never left in your database - Handles almost all cyclic dependencies To use, first install the plugin, then add the following to test/test_helper.rb after "require ''test_help''": require ''fixture_dependencies_test_help'' This overrides the default test helper to load the fixtures inside transactions and to use FixtureDependencies to load the fixtures. fixture_dependencies is available via http and svn: svn: svn://code.jeremyevans.net/rails-plugins/fixture_dependencies file: http://code.jeremyevans.net/code/fixture_dependencies.tar.gz RDoc for the plugin is available at: http://code.jeremyevans.net/doc/fixture_dependencies/ Enjoy, Jeremy -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---