Sha256: 50f147034ee4ff3066e0a8221f284fc2d0793c912f501a9584790dafcfaaef2f

Contents?: true

Size: 527 Bytes

Versions: 39

Compression:

Stored size: 527 Bytes

Contents

require 'spree/testing_support/factories/line_item_factory'
require 'spree/testing_support/factories/variant_factory'
require 'spree/testing_support/factories/order_factory'
require 'spree/testing_support/factories/shipment_factory'

FactoryGirl.define do
  factory :inventory_unit, class: Spree::InventoryUnit do
    variant
    order
    line_item { build(:line_item, order: order, variant: variant) }
    state 'on_hand'
    shipment { build(:shipment, state: 'pending', order: order) }
    # return_authorization
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

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