Sha256: 5d6adad084d597251d625f9d91c8428ab0df6a6892d8cb8e674878d314c4387e

Contents?: true

Size: 201 Bytes

Versions: 102

Compression:

Stored size: 201 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

102 entries across 102 versions & 1 rubygems

Version Path
spree_core-3.7.10 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.3 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.9 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.2 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.8 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.1 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.7 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.0 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.0.rc3 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.6 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.5 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.0.rc2 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.0.rc1 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-4.0.0.beta lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.4 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.3 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.2 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.1 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.0 lib/spree/testing_support/factories/stock_movement_factory.rb
spree_core-3.7.0.rc3 lib/spree/testing_support/factories/stock_movement_factory.rb