Sha256: 17bf496efff7f35e059cb53a918847d7df42af43d12b153ce151038b1e13c9a6

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true

FactoryBot.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

1 entries across 1 versions & 1 rubygems

Version Path
solidus_volume_pricing-1.0.0 spec/factories/volume_price_factory.rb