All Fixtures plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://beautifulpixel.com/svn/plugins/all_fixtures/
# test/unit/blog_article.rb class BlogArticleTest < Test::Unit::TestCase all_fixtures def test_user_association assert_equal users(:quentin), blog_articles(:launch).user end def test_comment_association assert_equal [comments(:supportive)], blog_articles(:launch).comments end end
Or to automatically have every single test use every single fixture without having to call all_fixtures in each test file do the following.
# test/test_helper.rb class Test::Unit::TestCase all_fixtures end
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 7 months ago

