Sha256: 3d46a11fb784e8134a6b93deea509ad311b69401a645a5fe681f81218d7b5a69

Contents?: true

Size: 989 Bytes

Versions: 48

Compression:

Stored size: 989 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'
require 'spree/testing_support/factories/calculator_factory'

RSpec.describe 'calculator factory' do
  let(:factory_class) { Spree::Calculator }

  describe 'calculator' do
    let(:factory) { :calculator }

    it_behaves_like 'a working factory'
  end

  describe 'no amount calculator' do
    let(:factory) { :no_amount_calculator }

    it_behaves_like 'a working factory'
  end

  describe 'default_tax_calculator' do
    let(:factory) { :default_tax_calculator }

    it_behaves_like 'a working factory'
  end

  describe 'shipping calculator' do
    let(:factory) { :shipping_calculator }

    it_behaves_like 'a working factory'
  end

  describe 'shipping no amount calculator' do
    let(:factory) { :shipping_no_amount_calculator }

    it_behaves_like 'a working factory'
  end

  describe 'percent on item calculator' do
    let(:factory) { :percent_on_item_calculator }

    it_behaves_like 'a working factory'
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.10.5 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.10.3 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.10.2 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.6 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.8.6 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.10.1 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.5 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.10.0 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.4 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.6.6 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.7.4 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.8.5 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.3 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.2 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.10.0.beta1 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.7.3 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.6.5 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.1 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.0 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb
solidus_core-2.9.0.rc.1 spec/lib/spree/core/testing_support/factories/calculator_factory_spec.rb