3 category: Ruby libraries
9 gem 'machinist', '>= 2.0.0.beta2', group: 'test'
12 # ~$ rails generate machinist:install
18 # `make` builds it, and `make!` builds+saves it
20 User.make! name: "David"
23 ### Defining blueprints
27 email { "user-#{sn}@example.com" }
30 User.blueprint(:admin) do
31 name { "Admin User #{sn}" }
40 comments(3) # Makes 3 comments (has_many / habtm)
42 author # autodetect (Assumes there's User.blueprint)
48 * [https://github.com/notahat/machinist](https://github.com/notahat/machinist)