thoughtbot/factory_girl — Issue #284: Machinist syntax features
Author: wulftone
Created: 2012-01-27 02:00:41+00:00
State: open

So, I like the brevity of the machinist syntax, but factory_girl has some features that put it ahead (like `FactoryGirl.reload`, for one). However, the machinist syntax is much more in-depth than factory_girl's implementation is. It would be great to have the following:

1. `User.blueprint(:admin) do ... end` -- to define multiple blueprints on a model
2. `User.make :admin, last_name: 'AdminGuy'` -- using the above feature

Machinist doesn't have the following feature, but factory_girl already does, so it would be great to also have this:

User.make :admin, do |u|
u.last_name = 'Grrrr' if some_function_returns_a_boolean
end

Blocks are good!