public
Description: adds additional features to friendly fixtures
Homepage: http://blog.internautdesign.com/2007/12/10/friendly_fixtures-plugin-for-rails
Clone URL: git://github.com/dfl/friendly_fixtures.git
name age message
file LICENSE Loading commit data...
file README.rdoc
file Rakefile
file TODO
file init.rb
directory lib/
directory test/
README.rdoc

FriendlyFixtures

This plugin adds some extra features to the fixtures macro in Test::Unit. It is intended for Rails 2.x, but works with 1.2.3 as well.

It enables you to:

  • load dependent models, which are found by object introspection on a model’s ActiveRecord associations.
  • assert that all the loaded fixtures are valid. Intended to be used in unit tests, this can be very helpful in finding bugs.

Example Usage:

class SomeTest < Test::Unit::TestCase

  fixtures :user, :dependencies => true, :validate => true

end

Contact

David Lowenfels <david at internautdesign.com>