Added support for alternate (cleaner) syntax
[doozer.git] / ReadMe
blobdd98a2cb63b30f2751047b2641dc0701c55f82e3
1 # Doozer
3 Doozer is a simple fixture generation library/plugin that handles all the annoying id management, and association building, allowing you to focus on crafting meaningful test fixtures.
5 See docs/readme.html for more...
7 # Notes
9 Use a syntax more like this: (?)
12 doozer :bob, as=>:nancy do
14   fields {
15     id
16     name
17     age
18     stuff = "STUFF"
19     created_on = Time.now
20   }
22   children :belong_to
23   
24   on :generate { |atts|
25     atts.user_id = 10
26   }
28 end