Sha256: b5924c9d5aa45f438d8ac15bbe79540c3aa6ef52ca1e2a3a2d6f8908849048db
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe VatRates::Fetcher do it '#get' do values = VatRates::Fetcher.get france = { code: 'FR', name: 'France', rate: 20.0, regions: [ {name: 'Corsica', rate: 20.0, reduced_rates: {category: 'Taux particulier', rate: 10.0}}, {name: 'DOM', rate: 8.5, reduced_rates: {category: 'Taux réduit', rate: 1.05}}, {name: 'Monaco', rate: 20.0, :reduced_rates=>{:category=>"Taux intermédiaire", :rate=>10.0}} ] } expect(values.find { |v| 'France' == v[:name] }).to eq(france) expect(values.count).to eq 28 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vat_rates-0.0.1 | spec/lib/fetcher_spec.rb |