Sha256: dcc431d7678e9e78782b127690fc332a312c61b332be48b42898e26dc3e42b89

Contents?: true

Size: 266 Bytes

Versions: 3

Compression:

Stored size: 266 Bytes

Contents

FactoryBot.define do
  factory :order, class: Patch::Order do
    sequence(:id) { |n| n }
    amount { 1_000 }
    unit { "g" }
    production { false }
    state { "draft" }
    price { 500 }
    patch_fee { 5 }
    currency { "USD" }
    metadata { {} }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
patch_ruby-2.3.0 spec/factories/orders.rb
patch_ruby-2.1.1 spec/factories/orders.rb
patch_ruby-2.0.0 spec/factories/orders.rb