Sha256: fd00bc415783044439c1d0ce99aa346c481e23bbef8afbe89a3f2f21d38259b8

Contents?: true

Size: 187 Bytes

Versions: 20

Compression:

Stored size: 187 Bytes

Contents

FactoryBot.define do
  factory :stock_movement, class: Spree::StockMovement do
    quantity 1
    action 'sold'
    stock_item
  end

  trait :received do
    action 'received'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
spree_core-3.4.6 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.2.9 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.6 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.5 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.4 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.3 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.2 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.1 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.0 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.5.0 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.3.6 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.2.8 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.6.0.rc1 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.5.0.rc2 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.5.0.rc1 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.4.5 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.3.5 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.4.4 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.4.3 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.4.2 lib/spree/testing_support/factories/stock_movement_factory.rb