Sha256: 9d97a036c3b694aeea00f8d057923ff50d22c3014d041362cd75be12a54671e2

Contents?: true

Size: 321 Bytes

Versions: 39

Compression:

Stored size: 321 Bytes

Contents

require 'spree/testing_support/factories/stock_location_factory'

FactoryGirl.define do
  # must use build()
  factory :stock_packer, class: Spree::Stock::Packer do
    transient do
      stock_location { build(:stock_location) }
      contents []
    end

    initialize_with { new(stock_location, contents) }
  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_packer_factory.rb
solidus_core-2.2.2 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.1.1 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.0.3 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-1.4.2 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-1.3.2 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-1.2.3 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.3.0 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.3.0.rc3 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.3.0.rc2 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.3.0.rc1 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.3.0.beta1 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.0.2 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-1.4.1 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.2.1 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.2.0 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.2.0.rc1 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.2.0.beta1 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.1.0 lib/spree/testing_support/factories/stock_packer_factory.rb
solidus_core-2.1.0.rc1 lib/spree/testing_support/factories/stock_packer_factory.rb