Various proposals have been floating around
http://dev.rubyonrails.org/ticket/6424 to allow users to specify references
to other fixtures in their fixture files, so that foreign key references are
kept consistent in test fixtures.
One of the suggestions was to bring the fixture references plugin
(http://wiki.pluginaweek.org/Fixture_references) into core. I know that, as
a plugin, it's not hard to include it in your Rails application, but it's a
rare Rails app indeed that doesn't have some measure of foreign key in it,
and keeping fixtures as flexible and un-brittle as possible seems like a big
win for testing.
What do other people think about bringing this plugin in? If it's
considered a possibility, I'll open up a ticket with a patch and whatnot, I
just don't want to add yet more noise to Trac if it's generally considered a