Sha256: b45fe3b3ac77cbf3e1596dae859f7ddf86947138ac7a96c9063a207c5f4e3c5f

Contents?: true

Size: 411 Bytes

Versions: 14

Compression:

Stored size: 411 Bytes

Contents

FactoryGirl.define do
  factory :adjustment, :class => Spree::Adjustment do
    adjustable { Factory(:order) }
    amount '100.0'
    label 'Shipping'
    source { Factory(:shipment) }
    eligible true
  end
  factory :line_item_adjustment, :class => Spree::Adjustment do
    adjustable { Factory(:line_item) }
    amount '10.0'
    label 'VAT 5%'
    source { Factory(:tax_rate) }
    eligible true
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_core-1.0.7 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.6 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.1.0 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.4 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.1.0.rc2 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.1.0.rc1 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.3 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.2 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.1 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.0 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.0.rc4 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.0.rc3 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.0.rc2 lib/spree/core/testing_support/factories/adjustment_factory.rb
spree_core-1.0.0.rc1 lib/spree/core/testing_support/factories/adjustment_factory.rb