Sha256: a5bf31977e04d7cb285949e06c48c839696744cd7f318448c04f67a9c0f90c1b

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

Makers.define do

  maker :user, aliases: :owner do
    name 'name'
    sequence(:username) { name }
    sequence(:email) { |n| "mail#{n}@example.com" }
    sequence(:phone)
    posts

    maker :user_with_age do
      age 9
    end
    maker :user_with_posts do
      posts 2, strategy: :create
    end
  end

  maker :post do
    association :user, maker: :owner
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
makers-4.0.0.2 test/dummy/test/makers.rb
makers-4.0.0.1 test/dummy/test/makers.rb