Rails Fixtures plugin

Plugin details

Fixture allows creation of fixture data inline inside of tests rather than creating them in separate fixture files.

Websitehttp://www.daikini.com/past/2007/6/10/rails_fixtures/ Repositorysvn://svn.roundhaus.com/daikini/plugins/fixture Author Jonathan Younger Tags fixture LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install svn://svn.roundhaus.com/daikini/plugins/fixture
person = fixture :person, :name => "John Smith", :email => "john.smith@example.com"



This inserts a new record in the people table and sets the name and email fields to specified values.
The value returned is a Person ActiveRecord::Base object with the attributes set to the specified values.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 8 months ago