Sha256: d498b766e52fb4736cbe28e4cdc81ff10c2e4bbff5e324e01ea1e33b44e9fe6e

Contents?: true

Size: 429 Bytes

Versions: 15

Compression:

Stored size: 429 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 2 rubygems

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