Sha256: 8a4df035a15e5f25c9cef2a6f6aff7dc6dda0f577f1d540c459da5bc8711bb8a

Contents?: true

Size: 178 Bytes

Versions: 5

Compression:

Stored size: 178 Bytes

Contents

FactoryGirl.define do
  factory :stock_item, class: Spree::StockItem do
    variant
    stock_location

    after(:create) { |object| object.adjust_count_on_hand(10) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_core-2.0.3 lib/spree/testing_support/factories/stock_item_factory.rb
spree_core-2.0.2 lib/spree/testing_support/factories/stock_item_factory.rb
spree_core-2.0.1 lib/spree/testing_support/factories/stock_item_factory.rb
spree_core-2.0.0 lib/spree/testing_support/factories/stock_item_factory.rb
spree_core-2.0.0.rc1 lib/spree/testing_support/factories/stock_item_factory.rb