3 category: Ruby libraries
6 archived: Machinist has not been in active development since 2013.
11 Machinist is a fixture management library for Ruby.
13 - <https://github.com/notahat/machinist>
18 gem 'machinist', '>= 2.0.0.beta2', group: 'test'
21 # ~$ rails generate machinist:install
27 # `make` builds it, and `make!` builds+saves it
29 User.make! name: "David"
32 ### Defining blueprints
36 email { "user-#{sn}@example.com" }
39 User.blueprint(:admin) do
40 name { "Admin User #{sn}" }
49 comments(3) # Makes 3 comments (has_many / habtm)
51 author # autodetect (Assumes there's User.blueprint)
57 * [https://github.com/notahat/machinist](https://github.com/notahat/machinist)