Sha256: 98e182650c2e1f9df0d058bc7d0d06e0f2174479dc2b2426152782cad5d2bcf6

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

require 'test_helper'

module Europe
  module Vat
    # RatesTest
    class RatesTest < Minitest::Test
      include Benchmark

      def setup
        WebMock.disable!
      end

      def test_retrieval_of_vat_rates
        rates = Europe::Vat::Rates.retrieve
        assert_equal rates.count, Europe::Countries::COUNTRIES.count
        assert rates[:NL]
        assert rates[:DE]
        assert rates[:ES]
        assert_nil rates[:GG]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
europe-0.0.6 test/europe/vat/rates_test.rb
europe-0.0.5 test/europe/vat/rates_test.rb