Sha256: a669e7ebfa223e4d6184abfe8136129d9ec6e6931aa8b86dc4716e842aff6eb4
Contents?: true
Size: 749 Bytes
Versions: 48
Compression:
Stored size: 749 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 :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
48 entries across 48 versions & 2 rubygems