Sha256: e0e62b70cd15c6b1bee4f567af3a35e8d0f2108eec97cd4ec8315839dd8e3488

Contents?: true

Size: 336 Bytes

Versions: 23

Compression:

Stored size: 336 Bytes

Contents

FactoryGirl.define do
  factory :inventory_unit, :class => Spree::InventoryUnit do
    variant { FactoryGirl.create(:variant) }
    order { FactoryGirl.create(:order) }
    state 'sold'
    shipment { FactoryGirl.create(:shipment, :state => 'pending') }
    #return_authorization { FactoryGirl.create(:return_authorization) }
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
spree_core-1.1.2 lib/spree/core/testing_support/factories/inventory_unit_factory.rb
spree_core-1.1.2.rc1 lib/spree/core/testing_support/factories/inventory_unit_factory.rb
spree_core-1.1.1 lib/spree/core/testing_support/factories/inventory_unit_factory.rb