Just released a very simple plugin for including all fixtures in your
tests. Once you have a large number of table, manually managing the
fixtures for every single test stub can be quite tedious.
Use as follows
class BlogArticleTest < Test::Unit::TestCase
all_fixtures
def test_foo
…
end
end
Couldn’t be easier. More info here:
http://beautifulpixel.com/articles/2006/08/04/all-fixtures-plugin
It works by simply scanning the fixtures directory for *.yml files, and
converts it to an array of symbols that gets passed to the fixtures
method. Performance seems identical with and without.
Hope it makes someone life easier.