test/dummy/test/makers.rb in makers-4.0.0.2 vs test/dummy/test/makers.rb in makers-4.0.0.3

- old
+ new

@@ -1,7 +1,11 @@ Makers.define do + trait :user do + association :user, maker: :owner + end + maker :user, aliases: :owner do name 'name' sequence(:username) { name } sequence(:email) { |n| "mail#{n}@example.com" } sequence(:phone) @@ -13,10 +17,8 @@ maker :user_with_posts do posts 2, strategy: :create end end - maker :post do - association :user, maker: :owner - end + maker :post, traits: :user end