Sha256: b2094495ff35babada078de5e2c8707666968a5b4fbeab366ffaf2135eba0980
Contents?: true
Size: 827 Bytes
Versions: 21
Compression:
Stored size: 827 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :calculator, aliases: [:flat_rate_calculator], class: 'Spree::Calculator::FlatRate' do preferred_amount { 10.0 } end factory :no_amount_calculator, class: 'Spree::Calculator::FlatRate' do preferred_amount { 0 } end factory :default_tax_calculator, class: 'Spree::Calculator::DefaultTax' do end factory :flat_fee_calculator, class: 'Spree::Calculator::FlatFee' do end factory :shipping_calculator, class: 'Spree::Calculator::Shipping::FlatRate' do preferred_amount { 10.0 } end factory :shipping_no_amount_calculator, class: 'Spree::Calculator::Shipping::FlatRate' do preferred_amount { 0 } end factory :percent_on_item_calculator, class: 'Spree::Calculator::PercentOnLineItem' do preferred_percent { 10 } end end
Version data entries
21 entries across 21 versions & 1 rubygems