Sha256: d264a5598a0a95c1b6872854d62c48b2abcb8798296bc4599660a48ee3dcc796

Contents?: true

Size: 258 Bytes

Versions: 4

Compression:

Stored size: 258 Bytes

Contents

FactoryGirl.define do
  factory :volume_price, class: Spree::VolumePrice do
    amount 10
    discount_type 'price'
    range '(1..5)'
    association :variant
  end

  factory :volume_price_model, class: Spree::VolumePriceModel do
    name 'name'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_volume_pricing-0.2.1 spec/factories/volume_price_factory.rb
solidus_volume_pricing-0.1.1 spec/factories/volume_price_factory.rb
solidus_volume_pricing-0.2.0 spec/factories/volume_price_factory.rb
solidus_volume_pricing-0.1.0 spec/factories/volume_price_factory.rb