Sha256: 128be9d1bf692b98e18f0d5f9808d107ea21694da6d99c66efde48802b9cd1f6

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

Fabricator(:order) do
  state       :opened
  items(count: Forgery::Basic.number(at_most: 1000))
end

Fabricator(:accepted_order, from: :order) do
  state :accepted
end

Fabricator(:work_order) do
  after_build do | order, transients |
    order.responsible = Fabricate(:responsible) if order.respond_to? :responsible
  end
  # responsible
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
canmoia-0.3.0 spec/fabricators/order_fabricator.rb
canmoia-0.2.0 spec/fabricators/order_fabricator.rb
canmoia-0.1.0 spec/fabricators/order_fabricator.rb
canmoia-0.0.4 spec/fabricators/order_fabricator.rb
canmoia-0.0.3 spec/fabricators/order_fabricator.rb
canmoia-0.0.2 spec/fabricators/order_fabricator.rb
canmoia-0.0.1 spec/fabricators/order_fabricator.rb