I released a gem a little while ago for doing factories with Sequel. It's
called, ever so creatively, sequel-factory.

http://mjijackson.github.com/sequel-factory

>From the README:

Sequel::Factory supports the following features:

* Multiple factories per model, with different attributes
* Inclusion of the attributes of one factory into another
* Ability to configure the Sequel::Model method used by a factory to
generate instances (defaults to create)
* Ability to override factory-generated values on instance creation
* Sequential attributes (e.g. auto-incrementing ids)

Also, the actual code is only ~100 lines of Ruby, so it should be fairly
straightforward for you to understand.

Enjoy!

--
Michael Jackson
@mjackson

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to