Sha256: b539d1fdf678068d9af0cedc89c83565a229c7a687a8a2380b0612b6f6db9ead
Contents?: true
Size: 540 Bytes
Versions: 3
Compression:
Stored size: 540 Bytes
Contents
require 'test_helper' class CorrencyTest < ActiveSupport::TestCase setup do @old_vat_rate = Corrency::Config.vat_rate end context "Config" do should "have a default vat_rate" do assert_equal Corrency::Config.vat_rate.class, Float end should "set vat_rate" do Corrency::Config.vat_rate = 17.50 assert_equal 17.50, Corrency::Config.vat_rate end end teardown do # Makes sure all other tests that expect base tax still pass Corrency::Config.vat_rate = @old_vat_rate end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
corrency-0.2.0 | test/corrency_test.rb |
corrency-0.1.1 | test/corrency_test.rb |
corrency-0.1.0 | test/corrency_test.rb |