Sha256: 5f54b4ce02111589e22bd3c3859de5b108d6ec1104bfd078516bbf1f94be9bae

Contents?: true

Size: 250 Bytes

Versions: 39

Compression:

Stored size: 250 Bytes

Contents

require 'spree/testing_support/factories/stock_item_factory'

FactoryGirl.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

39 entries across 39 versions & 1 rubygems

Version Path
solidus_core-2.3.1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.2.2 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.1.1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.0.3 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-1.4.2 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-1.3.2 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-1.2.3 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.3.0 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.3.0.rc3 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.3.0.rc2 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.3.0.rc1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.3.0.beta1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.0.2 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-1.4.1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.2.1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.2.0 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.2.0.rc1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.2.0.beta1 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.1.0 lib/spree/testing_support/factories/stock_movement_factory.rb
solidus_core-2.1.0.rc1 lib/spree/testing_support/factories/stock_movement_factory.rb