Fabrication is a fixture replacement library for Ruby.
Fabrication allows you to define schematics for objects and generate valid instances of them on demand in your tests, seeds, or anywhere else. It works with any Ruby object but actively supports ActiveRecord, Mongoid, Sequel, and DataMapper objects.
It is fast, lightweight, and with no gem dependencies at all so you can use it anywhere you want.