Sha256: dcb2cd216e1969f3e3b52cb9566229bb4668dd50ad940eb92b8f4b02b141cc74

Contents?: true

Size: 426 Bytes

Versions: 15

Compression:

Stored size: 426 Bytes

Contents

require 'test_helper'

class PerItemCalculatorTest < ActiveSupport::TestCase
  context "Calculator::PerItem" do
    [Coupon, ShippingMethod].each do |calculable| 
      should "be available to #{calculable.to_s}" do
       assert calculable.calculators.include?(Calculator::PerItem)
      end
    end
    should "not be available to TaxRate" do
      assert !TaxRate.calculators.include?(Calculator::PerItem)
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
spree-0.11.4 test/unit/per_item_calculator_test.rb
spree-0.11.3 test/unit/per_item_calculator_test.rb
spree-0.11.2 test/unit/per_item_calculator_test.rb
spree-0.11.1 test/unit/per_item_calculator_test.rb
spree-0.11.0 test/unit/per_item_calculator_test.rb
spree-0.10.2 test/unit/per_item_calculator_test.rb
spree-0.10.1 test/unit/per_item_calculator_test.rb
spree-0.10.0 test/unit/per_item_calculator_test.rb
spree-0.10.0.beta test/unit/per_item_calculator_test.rb
spree-enriquez-0.9.4 test/unit/per_item_calculator_test.rb
spree-0.9.4 test/unit/per_item_calculator_test.rb
spree-0.9.3 test/unit/per_item_calculator_test.rb
spree-0.9.2 test/unit/per_item_calculator_test.rb
spree-0.9.1 test/unit/per_item_calculator_test.rb
spree-0.9.0 test/unit/per_item_calculator_test.rb