income-tax 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/income_tax/countries/austria.rb +13 -5
- data/lib/income_tax/countries/france.rb +9 -1
- data/lib/income_tax/countries/germany.rb +59 -18
- data/lib/income_tax/countries/germany/rates.tsv +10 -0
- data/lib/income_tax/countries/greece.rb +3 -2
- data/lib/income_tax/countries/singapore.rb +2 -11
- data/lib/income_tax/countries/switzerland/aargau.rb +1 -1
- data/lib/income_tax/countries/switzerland/appenzell_inner.rb +1 -1
- data/lib/income_tax/countries/switzerland/appenzell_outer.rb +1 -1
- data/lib/income_tax/countries/switzerland/basel_city.rb +1 -1
- data/lib/income_tax/countries/switzerland/basel_land.rb +1 -1
- data/lib/income_tax/countries/switzerland/bern.rb +1 -1
- data/lib/income_tax/countries/switzerland/data/aargau.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/appenzell_inner.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/appenzell_outer.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/basel_city.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/basel_land.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/bern.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/fribourg.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/geneva.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/glarus.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/grisons.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/jura.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/lucerne.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/neuchatel.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/nidwalden.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/obwalden.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/schaffhausen.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/schwyz.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/solothurn.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/st_gallen.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/thurgau.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/ticino.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/uri.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/valais.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/vaud.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/zug.dat +0 -0
- data/lib/income_tax/countries/switzerland/data/zurich.dat +0 -0
- data/lib/income_tax/countries/switzerland/fribourg.rb +1 -1
- data/lib/income_tax/countries/switzerland/geneva.rb +1 -1
- data/lib/income_tax/countries/switzerland/glarus.rb +1 -1
- data/lib/income_tax/countries/switzerland/grisons.rb +1 -1
- data/lib/income_tax/countries/switzerland/jura.rb +1 -1
- data/lib/income_tax/countries/switzerland/lucerne.rb +1 -1
- data/lib/income_tax/countries/switzerland/neuchatel.rb +1 -1
- data/lib/income_tax/countries/switzerland/nidwalden.rb +1 -1
- data/lib/income_tax/countries/switzerland/obwalden.rb +1 -1
- data/lib/income_tax/countries/switzerland/schaffhausen.rb +1 -1
- data/lib/income_tax/countries/switzerland/schwyz.rb +1 -1
- data/lib/income_tax/countries/switzerland/solothurn.rb +1 -1
- data/lib/income_tax/countries/switzerland/st_gallen.rb +1 -1
- data/lib/income_tax/countries/switzerland/thurgau.rb +1 -1
- data/lib/income_tax/countries/switzerland/ticino.rb +1 -1
- data/lib/income_tax/countries/switzerland/uri.rb +1 -1
- data/lib/income_tax/countries/switzerland/valais.rb +1 -1
- data/lib/income_tax/countries/switzerland/vaud.rb +1 -1
- data/lib/income_tax/countries/switzerland/zug.rb +1 -1
- data/lib/income_tax/countries/switzerland/zurich.rb +1 -1
- data/lib/income_tax/countries/united_kingdom.rb +12 -4
- data/lib/income_tax/models/generic.rb +5 -1
- data/lib/income_tax/models/progressive.rb +27 -5
- data/lib/income_tax/rate.rb +1 -0
- data/lib/income_tax/register.rb +6 -0
- data/lib/income_tax/version.rb +1 -1
- data/locations.md +250 -13
- data/readme.md +3 -2
- data/script/generate_switzerland.rb +10 -6
- data/spec/income_tax/countries/afghanistan_spec.rb +11 -1
- data/spec/income_tax/countries/aland_spec.rb +11 -1
- data/spec/income_tax/countries/albania_spec.rb +11 -1
- data/spec/income_tax/countries/algeria_spec.rb +11 -1
- data/spec/income_tax/countries/american_samoa_spec.rb +11 -1
- data/spec/income_tax/countries/andorra_spec.rb +11 -1
- data/spec/income_tax/countries/angola_spec.rb +11 -1
- data/spec/income_tax/countries/anguilla_spec.rb +11 -1
- data/spec/income_tax/countries/antigua_and_barbuda_spec.rb +11 -1
- data/spec/income_tax/countries/argentina_spec.rb +11 -1
- data/spec/income_tax/countries/armenia_spec.rb +11 -1
- data/spec/income_tax/countries/aruba_spec.rb +11 -1
- data/spec/income_tax/countries/australia_spec.rb +11 -1
- data/spec/income_tax/countries/austria_spec.rb +185 -74
- data/spec/income_tax/countries/azerbaijan_spec.rb +11 -1
- data/spec/income_tax/countries/bahamas_spec.rb +11 -1
- data/spec/income_tax/countries/bahrain_spec.rb +11 -1
- data/spec/income_tax/countries/bangladesh_spec.rb +11 -1
- data/spec/income_tax/countries/barbados_spec.rb +11 -1
- data/spec/income_tax/countries/belarus_spec.rb +11 -1
- data/spec/income_tax/countries/belgium_spec.rb +11 -1
- data/spec/income_tax/countries/belize_spec.rb +11 -1
- data/spec/income_tax/countries/benin_spec.rb +11 -1
- data/spec/income_tax/countries/bermuda_spec.rb +11 -1
- data/spec/income_tax/countries/bhutan_spec.rb +11 -1
- data/spec/income_tax/countries/bolivia_spec.rb +11 -1
- data/spec/income_tax/countries/bosnia_and_herzegovina_spec.rb +11 -1
- data/spec/income_tax/countries/botswana_spec.rb +11 -1
- data/spec/income_tax/countries/bouvet_island_spec.rb +11 -1
- data/spec/income_tax/countries/brazil_spec.rb +11 -1
- data/spec/income_tax/countries/british_indian_ocean_territory_spec.rb +35 -25
- data/spec/income_tax/countries/brunei_spec.rb +11 -1
- data/spec/income_tax/countries/bulgaria_spec.rb +11 -1
- data/spec/income_tax/countries/burkina_faso_spec.rb +11 -1
- data/spec/income_tax/countries/burundi_spec.rb +11 -1
- data/spec/income_tax/countries/cambodia_spec.rb +11 -1
- data/spec/income_tax/countries/cameroon_spec.rb +11 -1
- data/spec/income_tax/countries/canada_spec.rb +11 -1
- data/spec/income_tax/countries/cape_verde_spec.rb +11 -1
- data/spec/income_tax/countries/caribbean_netherlands_spec.rb +11 -1
- data/spec/income_tax/countries/cayman_islands_spec.rb +11 -1
- data/spec/income_tax/countries/central_african_republic_spec.rb +11 -1
- data/spec/income_tax/countries/chad_spec.rb +11 -1
- data/spec/income_tax/countries/chile_spec.rb +11 -1
- data/spec/income_tax/countries/china_spec.rb +11 -1
- data/spec/income_tax/countries/christmas_island_spec.rb +11 -1
- data/spec/income_tax/countries/cocos_keeling_islands_spec.rb +11 -1
- data/spec/income_tax/countries/colombia_spec.rb +11 -1
- data/spec/income_tax/countries/comoros_spec.rb +11 -1
- data/spec/income_tax/countries/congo_republic_spec.rb +11 -1
- data/spec/income_tax/countries/congo_spec.rb +11 -1
- data/spec/income_tax/countries/cook_islands_spec.rb +11 -1
- data/spec/income_tax/countries/costa_rica_spec.rb +11 -1
- data/spec/income_tax/countries/croatia_spec.rb +11 -1
- data/spec/income_tax/countries/cuba_spec.rb +11 -1
- data/spec/income_tax/countries/curacao_spec.rb +11 -1
- data/spec/income_tax/countries/cyprus_spec.rb +11 -1
- data/spec/income_tax/countries/czech_republic_spec.rb +11 -1
- data/spec/income_tax/countries/denmark_spec.rb +11 -1
- data/spec/income_tax/countries/djibouti_spec.rb +11 -1
- data/spec/income_tax/countries/dominica_spec.rb +11 -1
- data/spec/income_tax/countries/dominican_republic_spec.rb +11 -1
- data/spec/income_tax/countries/ecuador_spec.rb +11 -1
- data/spec/income_tax/countries/egypt_spec.rb +11 -1
- data/spec/income_tax/countries/el_salvador_spec.rb +11 -1
- data/spec/income_tax/countries/equatorial_guinea_spec.rb +11 -1
- data/spec/income_tax/countries/eritrea_spec.rb +11 -1
- data/spec/income_tax/countries/estonia_spec.rb +11 -1
- data/spec/income_tax/countries/ethiopia_spec.rb +11 -1
- data/spec/income_tax/countries/falkland_islands_spec.rb +11 -1
- data/spec/income_tax/countries/faroe_islands_spec.rb +11 -1
- data/spec/income_tax/countries/fiji_spec.rb +11 -1
- data/spec/income_tax/countries/finland_spec.rb +88 -75
- data/spec/income_tax/countries/france_spec.rb +185 -74
- data/spec/income_tax/countries/french_guiana_spec.rb +11 -1
- data/spec/income_tax/countries/french_polynesia_spec.rb +11 -1
- data/spec/income_tax/countries/french_southern_territories_spec.rb +11 -1
- data/spec/income_tax/countries/gabon_spec.rb +11 -1
- data/spec/income_tax/countries/gambia_spec.rb +11 -1
- data/spec/income_tax/countries/georgia_spec.rb +11 -1
- data/spec/income_tax/countries/germany_spec.rb +864 -67
- data/spec/income_tax/countries/ghana_spec.rb +11 -1
- data/spec/income_tax/countries/gibraltar_spec.rb +11 -1
- data/spec/income_tax/countries/greece_spec.rb +41 -31
- data/spec/income_tax/countries/greenland_spec.rb +11 -1
- data/spec/income_tax/countries/grenada_spec.rb +11 -1
- data/spec/income_tax/countries/guadeloupe_spec.rb +11 -1
- data/spec/income_tax/countries/guam_spec.rb +11 -1
- data/spec/income_tax/countries/guatemala_spec.rb +11 -1
- data/spec/income_tax/countries/guernsey_spec.rb +11 -1
- data/spec/income_tax/countries/guinea_bissau_spec.rb +11 -1
- data/spec/income_tax/countries/guinea_spec.rb +11 -1
- data/spec/income_tax/countries/guyana_spec.rb +11 -1
- data/spec/income_tax/countries/haiti_spec.rb +11 -1
- data/spec/income_tax/countries/heard_and_mcdonald_islands_spec.rb +11 -1
- data/spec/income_tax/countries/honduras_spec.rb +11 -1
- data/spec/income_tax/countries/hong_kong_spec.rb +11 -1
- data/spec/income_tax/countries/hungary_spec.rb +11 -1
- data/spec/income_tax/countries/iceland_spec.rb +11 -1
- data/spec/income_tax/countries/india_spec.rb +11 -1
- data/spec/income_tax/countries/indonesia_spec.rb +11 -1
- data/spec/income_tax/countries/iran_spec.rb +11 -1
- data/spec/income_tax/countries/iraq_spec.rb +11 -1
- data/spec/income_tax/countries/ireland_spec.rb +11 -1
- data/spec/income_tax/countries/isle_of_man_spec.rb +11 -1
- data/spec/income_tax/countries/israel_spec.rb +11 -1
- data/spec/income_tax/countries/italy_spec.rb +11 -1
- data/spec/income_tax/countries/ivory_coast_spec.rb +11 -1
- data/spec/income_tax/countries/jamaica_spec.rb +11 -1
- data/spec/income_tax/countries/japan_spec.rb +11 -1
- data/spec/income_tax/countries/jersey_spec.rb +11 -1
- data/spec/income_tax/countries/jordan_spec.rb +11 -1
- data/spec/income_tax/countries/kazakhstan_spec.rb +11 -1
- data/spec/income_tax/countries/kenya_spec.rb +11 -1
- data/spec/income_tax/countries/kiribati_spec.rb +11 -1
- data/spec/income_tax/countries/kosovo_spec.rb +11 -1
- data/spec/income_tax/countries/kuwait_spec.rb +11 -1
- data/spec/income_tax/countries/kyrgyzstan_spec.rb +11 -1
- data/spec/income_tax/countries/laos_spec.rb +11 -1
- data/spec/income_tax/countries/latvia_spec.rb +11 -1
- data/spec/income_tax/countries/lebanon_spec.rb +11 -1
- data/spec/income_tax/countries/lesotho_spec.rb +11 -1
- data/spec/income_tax/countries/liberia_spec.rb +11 -1
- data/spec/income_tax/countries/libya_spec.rb +11 -1
- data/spec/income_tax/countries/liechtenstein_spec.rb +11 -1
- data/spec/income_tax/countries/lithuania_spec.rb +11 -1
- data/spec/income_tax/countries/luxembourg_spec.rb +11 -1
- data/spec/income_tax/countries/macao_spec.rb +11 -1
- data/spec/income_tax/countries/macedonia_spec.rb +11 -1
- data/spec/income_tax/countries/madagascar_spec.rb +11 -1
- data/spec/income_tax/countries/malawi_spec.rb +11 -1
- data/spec/income_tax/countries/malaysia_spec.rb +11 -1
- data/spec/income_tax/countries/maldives_spec.rb +11 -1
- data/spec/income_tax/countries/mali_spec.rb +11 -1
- data/spec/income_tax/countries/malta_spec.rb +11 -1
- data/spec/income_tax/countries/marshall_islands_spec.rb +11 -1
- data/spec/income_tax/countries/martinique_spec.rb +11 -1
- data/spec/income_tax/countries/mauritania_spec.rb +11 -1
- data/spec/income_tax/countries/mauritius_spec.rb +11 -1
- data/spec/income_tax/countries/mayotte_spec.rb +11 -1
- data/spec/income_tax/countries/mexico_spec.rb +11 -1
- data/spec/income_tax/countries/micronesia_spec.rb +11 -1
- data/spec/income_tax/countries/moldova_spec.rb +11 -1
- data/spec/income_tax/countries/monaco_spec.rb +11 -1
- data/spec/income_tax/countries/mongolia_spec.rb +11 -1
- data/spec/income_tax/countries/montenegro_spec.rb +11 -1
- data/spec/income_tax/countries/montserrat_spec.rb +11 -1
- data/spec/income_tax/countries/morocco_spec.rb +11 -1
- data/spec/income_tax/countries/mozambique_spec.rb +11 -1
- data/spec/income_tax/countries/myanmar_spec.rb +11 -1
- data/spec/income_tax/countries/namibia_spec.rb +11 -1
- data/spec/income_tax/countries/nauru_spec.rb +11 -1
- data/spec/income_tax/countries/nepal_spec.rb +11 -1
- data/spec/income_tax/countries/netherlands_antilles_spec.rb +11 -1
- data/spec/income_tax/countries/netherlands_spec.rb +11 -1
- data/spec/income_tax/countries/new_caledonia_spec.rb +11 -1
- data/spec/income_tax/countries/new_zealand_spec.rb +11 -1
- data/spec/income_tax/countries/nicaragua_spec.rb +11 -1
- data/spec/income_tax/countries/niger_spec.rb +11 -1
- data/spec/income_tax/countries/nigeria_spec.rb +11 -1
- data/spec/income_tax/countries/niue_spec.rb +11 -1
- data/spec/income_tax/countries/norfolk_island_spec.rb +11 -1
- data/spec/income_tax/countries/north_korea_spec.rb +11 -1
- data/spec/income_tax/countries/northern_mariana_islands_spec.rb +11 -1
- data/spec/income_tax/countries/norway_spec.rb +88 -75
- data/spec/income_tax/countries/oman_spec.rb +11 -1
- data/spec/income_tax/countries/pakistan_spec.rb +11 -1
- data/spec/income_tax/countries/palau_spec.rb +11 -1
- data/spec/income_tax/countries/palestinian_territory_spec.rb +11 -1
- data/spec/income_tax/countries/panama_spec.rb +11 -1
- data/spec/income_tax/countries/papua_new_guinea_spec.rb +11 -1
- data/spec/income_tax/countries/paraguay_spec.rb +11 -1
- data/spec/income_tax/countries/peru_spec.rb +11 -1
- data/spec/income_tax/countries/philippines_spec.rb +11 -1
- data/spec/income_tax/countries/pitcairn_spec.rb +11 -1
- data/spec/income_tax/countries/poland_spec.rb +11 -1
- data/spec/income_tax/countries/portugal_spec.rb +11 -1
- data/spec/income_tax/countries/puerto_rico_spec.rb +11 -1
- data/spec/income_tax/countries/qatar_spec.rb +11 -1
- data/spec/income_tax/countries/reunion_spec.rb +11 -1
- data/spec/income_tax/countries/romania_spec.rb +11 -1
- data/spec/income_tax/countries/russia_spec.rb +11 -1
- data/spec/income_tax/countries/rwanda_spec.rb +11 -1
- data/spec/income_tax/countries/saint_barthelemy_spec.rb +11 -1
- data/spec/income_tax/countries/saint_helena_spec.rb +11 -1
- data/spec/income_tax/countries/saint_kitts_and_nevis_spec.rb +11 -1
- data/spec/income_tax/countries/saint_lucia_spec.rb +11 -1
- data/spec/income_tax/countries/saint_martin_spec.rb +11 -1
- data/spec/income_tax/countries/saint_pierre_and_miquelon_spec.rb +11 -1
- data/spec/income_tax/countries/saint_vincent_and_the_grenedines_spec.rb +11 -1
- data/spec/income_tax/countries/samoa_spec.rb +11 -1
- data/spec/income_tax/countries/san_marino_spec.rb +11 -1
- data/spec/income_tax/countries/sao_tome_and_principe_spec.rb +11 -1
- data/spec/income_tax/countries/saudi_arabia_spec.rb +11 -1
- data/spec/income_tax/countries/senegal_spec.rb +11 -1
- data/spec/income_tax/countries/serbia_spec.rb +11 -1
- data/spec/income_tax/countries/seychelles_spec.rb +11 -1
- data/spec/income_tax/countries/sierra_leone_spec.rb +11 -1
- data/spec/income_tax/countries/singapore_spec.rb +185 -74
- data/spec/income_tax/countries/sint_maarten_spec.rb +11 -1
- data/spec/income_tax/countries/slovakia_spec.rb +11 -1
- data/spec/income_tax/countries/slovenia_spec.rb +11 -1
- data/spec/income_tax/countries/solomon_islands_spec.rb +11 -1
- data/spec/income_tax/countries/somalia_spec.rb +11 -1
- data/spec/income_tax/countries/south_africa_spec.rb +11 -1
- data/spec/income_tax/countries/south_georgia_and_the_south_sandwich_islands_spec.rb +35 -25
- data/spec/income_tax/countries/south_korea_spec.rb +11 -1
- data/spec/income_tax/countries/south_sudan_spec.rb +11 -1
- data/spec/income_tax/countries/spain_spec.rb +11 -1
- data/spec/income_tax/countries/sri_lanka_spec.rb +11 -1
- data/spec/income_tax/countries/sudan_spec.rb +11 -1
- data/spec/income_tax/countries/suriname_spec.rb +11 -1
- data/spec/income_tax/countries/svalbard_and_jan_mayen_spec.rb +11 -1
- data/spec/income_tax/countries/swaziland_spec.rb +11 -1
- data/spec/income_tax/countries/sweden_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/aargau_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/appenzell_inner_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/appenzell_outer_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/basel_city_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/basel_land_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/bern_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/fribourg_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/geneva_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/glarus_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/grisons_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/jura_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/lucerne_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/neuchatel_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/nidwalden_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/obwalden_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/schaffhausen_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/schwyz_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/solothurn_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/st_gallen_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/thurgau_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/ticino_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/uri_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/valais_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/vaud_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/zug_spec.rb +11 -1
- data/spec/income_tax/countries/switzerland/zurich_spec.rb +185 -74
- data/spec/income_tax/countries/switzerland_spec.rb +11 -1
- data/spec/income_tax/countries/syria_spec.rb +11 -1
- data/spec/income_tax/countries/taiwan_spec.rb +11 -1
- data/spec/income_tax/countries/tajikistan_spec.rb +11 -1
- data/spec/income_tax/countries/tanzania_spec.rb +11 -1
- data/spec/income_tax/countries/thailand_spec.rb +11 -1
- data/spec/income_tax/countries/timor_leste_spec.rb +11 -1
- data/spec/income_tax/countries/togo_spec.rb +11 -1
- data/spec/income_tax/countries/tokelau_spec.rb +11 -1
- data/spec/income_tax/countries/tonga_spec.rb +11 -1
- data/spec/income_tax/countries/trinidad_and_tobago_spec.rb +11 -1
- data/spec/income_tax/countries/tunisia_spec.rb +11 -1
- data/spec/income_tax/countries/turkey_spec.rb +11 -1
- data/spec/income_tax/countries/turkmenistan_spec.rb +11 -1
- data/spec/income_tax/countries/turks_and_caicos_islands_spec.rb +11 -1
- data/spec/income_tax/countries/tuvalu_spec.rb +11 -1
- data/spec/income_tax/countries/uganda_spec.rb +11 -1
- data/spec/income_tax/countries/ukraine_spec.rb +11 -1
- data/spec/income_tax/countries/united_arab_emirates_spec.rb +11 -1
- data/spec/income_tax/countries/united_kingdom_spec.rb +185 -74
- data/spec/income_tax/countries/united_states/alabama_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/alaska_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/arizona_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/arkansas_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/california_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/colorado_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/connecticut_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/dc_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/delaware_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/florida_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/georgia_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/hawaii_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/idaho_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/illinois_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/indiana_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/iowa_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/kansas_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/kentucky_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/louisiana_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/maine_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/maryland_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/massachusetts_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/michigan_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/minnesota_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/mississippi_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/missouri_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/montana_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/nebraska_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/nevada_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/new_hampshire_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/new_jersey_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/new_mexico_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/new_york_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/north_carolina_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/north_dakota_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/ohio_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/oklahoma_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/oregon_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/pennsylvania_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/rhode_island_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/south_carolina_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/south_dakota_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/tennessee_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/texas_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/utah_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/vermont_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/virginia_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/washington_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/west_virginia_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/wisconsin_spec.rb +11 -1
- data/spec/income_tax/countries/united_states/wyoming_spec.rb +11 -1
- data/spec/income_tax/countries/united_states_minor_outlying_islands_spec.rb +11 -1
- data/spec/income_tax/countries/united_states_spec.rb +11 -1
- data/spec/income_tax/countries/uruguay_spec.rb +11 -1
- data/spec/income_tax/countries/uzbekistan_spec.rb +11 -1
- data/spec/income_tax/countries/vanuatu_spec.rb +11 -1
- data/spec/income_tax/countries/vatican_spec.rb +11 -1
- data/spec/income_tax/countries/venezuela_spec.rb +11 -1
- data/spec/income_tax/countries/vietnam_spec.rb +11 -1
- data/spec/income_tax/countries/virgin_islands_british_spec.rb +11 -1
- data/spec/income_tax/countries/virgin_islands_us_spec.rb +11 -1
- data/spec/income_tax/countries/wallis_and_futuna_spec.rb +11 -1
- data/spec/income_tax/countries/western_sahara_spec.rb +11 -1
- data/spec/income_tax/countries/yemen_spec.rb +11 -1
- data/spec/income_tax/countries/zambia_spec.rb +11 -1
- data/spec/income_tax/countries/zimbabwe_spec.rb +11 -1
- metadata +3 -2
@@ -1,8 +1,9 @@
|
|
1
1
|
describe IncomeTax::Countries::Paraguay do
|
2
|
-
subject(:result) { described_class.new(income: income, income_type: type) }
|
2
|
+
subject(:result) { described_class.new(income: income, income_type: type, tax_year: tax_year) }
|
3
3
|
let(:type) { :gross }
|
4
4
|
|
5
5
|
describe "from gross income of 0" do
|
6
|
+
let(:tax_year) { 2015 }
|
6
7
|
let(:income) { 0 }
|
7
8
|
its(:rate) { should be == Rational(1, 10) }
|
8
9
|
its(:gross_income) { should be == 0 }
|
@@ -11,6 +12,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
11
12
|
end
|
12
13
|
|
13
14
|
describe "from gross income of 1000" do
|
15
|
+
let(:tax_year) { 2015 }
|
14
16
|
let(:income) { 1000 }
|
15
17
|
its(:rate) { should be == Rational(1, 10) }
|
16
18
|
its(:gross_income) { should be == 1000 }
|
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
19
21
|
end
|
20
22
|
|
21
23
|
describe "from gross income of 10000" do
|
24
|
+
let(:tax_year) { 2015 }
|
22
25
|
let(:income) { 10000 }
|
23
26
|
its(:rate) { should be == Rational(1, 10) }
|
24
27
|
its(:gross_income) { should be == 10000 }
|
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
27
30
|
end
|
28
31
|
|
29
32
|
describe "from gross income of 100000" do
|
33
|
+
let(:tax_year) { 2015 }
|
30
34
|
let(:income) { 100000 }
|
31
35
|
its(:rate) { should be == Rational(1, 10) }
|
32
36
|
its(:gross_income) { should be == 100000 }
|
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
35
39
|
end
|
36
40
|
|
37
41
|
describe "from gross income of 100000000" do
|
42
|
+
let(:tax_year) { 2015 }
|
38
43
|
let(:income) { 100000000 }
|
39
44
|
its(:rate) { should be == Rational(1, 10) }
|
40
45
|
its(:gross_income) { should be == 100000000 }
|
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
44
49
|
|
45
50
|
describe "from net income of 0" do
|
46
51
|
let(:type) { :net }
|
52
|
+
let(:tax_year) { 2015 }
|
47
53
|
let(:income) { 0 }
|
48
54
|
its(:rate) { should be == Rational(1, 10) }
|
49
55
|
its(:gross_income) { should be == 0 }
|
@@ -53,6 +59,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
53
59
|
|
54
60
|
describe "from net income of 1000" do
|
55
61
|
let(:type) { :net }
|
62
|
+
let(:tax_year) { 2015 }
|
56
63
|
let(:income) { 1000 }
|
57
64
|
its(:rate) { should be == Rational(1, 10) }
|
58
65
|
its(:gross_income) { should be == "1111.1111111111111".to_d }
|
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
62
69
|
|
63
70
|
describe "from net income of 10000" do
|
64
71
|
let(:type) { :net }
|
72
|
+
let(:tax_year) { 2015 }
|
65
73
|
let(:income) { 10000 }
|
66
74
|
its(:rate) { should be == Rational(1, 10) }
|
67
75
|
its(:gross_income) { should be == "11111.1111111111111".to_d }
|
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
71
79
|
|
72
80
|
describe "from net income of 100000" do
|
73
81
|
let(:type) { :net }
|
82
|
+
let(:tax_year) { 2015 }
|
74
83
|
let(:income) { 100000 }
|
75
84
|
its(:rate) { should be == Rational(1, 10) }
|
76
85
|
its(:gross_income) { should be == "111111.111111111111".to_d }
|
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::Paraguay do
|
|
80
89
|
|
81
90
|
describe "from net income of 100000000" do
|
82
91
|
let(:type) { :net }
|
92
|
+
let(:tax_year) { 2015 }
|
83
93
|
let(:income) { 100000000 }
|
84
94
|
its(:rate) { should be == Rational(1, 10) }
|
85
95
|
its(:gross_income) { should be == "111111111.11111111".to_d }
|
@@ -1,8 +1,9 @@
|
|
1
1
|
describe IncomeTax::Countries::Peru do
|
2
|
-
subject(:result) { described_class.new(income: income, income_type: type) }
|
2
|
+
subject(:result) { described_class.new(income: income, income_type: type, tax_year: tax_year) }
|
3
3
|
let(:type) { :gross }
|
4
4
|
|
5
5
|
describe "from gross income of 0" do
|
6
|
+
let(:tax_year) { 2015 }
|
6
7
|
let(:income) { 0 }
|
7
8
|
its(:rate) { should be == Rational(0, 1) }
|
8
9
|
its(:gross_income) { should be == 0 }
|
@@ -11,6 +12,7 @@ describe IncomeTax::Countries::Peru do
|
|
11
12
|
end
|
12
13
|
|
13
14
|
describe "from gross income of 1000" do
|
15
|
+
let(:tax_year) { 2015 }
|
14
16
|
let(:income) { 1000 }
|
15
17
|
its(:rate) { should be == Rational(3, 20) }
|
16
18
|
its(:gross_income) { should be == 1000 }
|
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::Peru do
|
|
19
21
|
end
|
20
22
|
|
21
23
|
describe "from gross income of 10000" do
|
24
|
+
let(:tax_year) { 2015 }
|
22
25
|
let(:income) { 10000 }
|
23
26
|
its(:rate) { should be == Rational(3, 20) }
|
24
27
|
its(:gross_income) { should be == 10000 }
|
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::Peru do
|
|
27
30
|
end
|
28
31
|
|
29
32
|
describe "from gross income of 100000" do
|
33
|
+
let(:tax_year) { 2015 }
|
30
34
|
let(:income) { 100000 }
|
31
35
|
its(:rate) { should be == Rational(9, 40) }
|
32
36
|
its(:gross_income) { should be == 100000 }
|
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::Peru do
|
|
35
39
|
end
|
36
40
|
|
37
41
|
describe "from gross income of 100000000" do
|
42
|
+
let(:tax_year) { 2015 }
|
38
43
|
let(:income) { 100000000 }
|
39
44
|
its(:rate) { should be == Rational(353, 1177) }
|
40
45
|
its(:gross_income) { should be == 100000000 }
|
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::Peru do
|
|
44
49
|
|
45
50
|
describe "from net income of 0" do
|
46
51
|
let(:type) { :net }
|
52
|
+
let(:tax_year) { 2015 }
|
47
53
|
let(:income) { 0 }
|
48
54
|
its(:rate) { should be == Rational(0, 1) }
|
49
55
|
its(:gross_income) { should be == 0 }
|
@@ -53,6 +59,7 @@ describe IncomeTax::Countries::Peru do
|
|
53
59
|
|
54
60
|
describe "from net income of 1000" do
|
55
61
|
let(:type) { :net }
|
62
|
+
let(:tax_year) { 2015 }
|
56
63
|
let(:income) { 1000 }
|
57
64
|
its(:rate) { should be == Rational(3, 20) }
|
58
65
|
its(:gross_income) { should be == "1176.47058823529412".to_d }
|
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::Peru do
|
|
62
69
|
|
63
70
|
describe "from net income of 10000" do
|
64
71
|
let(:type) { :net }
|
72
|
+
let(:tax_year) { 2015 }
|
65
73
|
let(:income) { 10000 }
|
66
74
|
its(:rate) { should be == Rational(3, 20) }
|
67
75
|
its(:gross_income) { should be == "11764.705882352941".to_d }
|
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::Peru do
|
|
71
79
|
|
72
80
|
describe "from net income of 100000" do
|
73
81
|
let(:type) { :net }
|
82
|
+
let(:tax_year) { 2015 }
|
74
83
|
let(:income) { 100000 }
|
75
84
|
its(:rate) { should be == Rational(9, 37) }
|
76
85
|
its(:gross_income) { should be == "132142.857142857143".to_d }
|
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::Peru do
|
|
80
89
|
|
81
90
|
describe "from net income of 100000000" do
|
82
91
|
let(:type) { :net }
|
92
|
+
let(:tax_year) { 2015 }
|
83
93
|
let(:income) { 100000000 }
|
84
94
|
its(:rate) { should be == Rational(482, 1607) }
|
85
95
|
its(:gross_income) { should be == "142846428.571428571".to_d }
|
@@ -1,8 +1,9 @@
|
|
1
1
|
describe IncomeTax::Countries::Philippines do
|
2
|
-
subject(:result) { described_class.new(income: income, income_type: type) }
|
2
|
+
subject(:result) { described_class.new(income: income, income_type: type, tax_year: tax_year) }
|
3
3
|
let(:type) { :gross }
|
4
4
|
|
5
5
|
describe "from gross income of 0" do
|
6
|
+
let(:tax_year) { 2015 }
|
6
7
|
let(:income) { 0 }
|
7
8
|
its(:rate) { should be == Rational(0, 1) }
|
8
9
|
its(:gross_income) { should be == 0 }
|
@@ -11,6 +12,7 @@ describe IncomeTax::Countries::Philippines do
|
|
11
12
|
end
|
12
13
|
|
13
14
|
describe "from gross income of 1000" do
|
15
|
+
let(:tax_year) { 2015 }
|
14
16
|
let(:income) { 1000 }
|
15
17
|
its(:rate) { should be == Rational(1, 20) }
|
16
18
|
its(:gross_income) { should be == 1000 }
|
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::Philippines do
|
|
19
21
|
end
|
20
22
|
|
21
23
|
describe "from gross income of 10000" do
|
24
|
+
let(:tax_year) { 2015 }
|
22
25
|
let(:income) { 10000 }
|
23
26
|
its(:rate) { should be == Rational(1, 20) }
|
24
27
|
its(:gross_income) { should be == 10000 }
|
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::Philippines do
|
|
27
30
|
end
|
28
31
|
|
29
32
|
describe "from gross income of 100000" do
|
33
|
+
let(:tax_year) { 2015 }
|
30
34
|
let(:income) { 100000 }
|
31
35
|
its(:rate) { should be == Rational(29, 200) }
|
32
36
|
its(:gross_income) { should be == 100000 }
|
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::Philippines do
|
|
35
39
|
end
|
36
40
|
|
37
41
|
describe "from gross income of 100000000" do
|
42
|
+
let(:tax_year) { 2015 }
|
38
43
|
let(:income) { 100000000 }
|
39
44
|
its(:rate) { should be == Rational(109, 341) }
|
40
45
|
its(:gross_income) { should be == 100000000 }
|
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::Philippines do
|
|
44
49
|
|
45
50
|
describe "from net income of 0" do
|
46
51
|
let(:type) { :net }
|
52
|
+
let(:tax_year) { 2015 }
|
47
53
|
let(:income) { 0 }
|
48
54
|
its(:rate) { should be == Rational(0, 1) }
|
49
55
|
its(:gross_income) { should be == 0 }
|
@@ -53,6 +59,7 @@ describe IncomeTax::Countries::Philippines do
|
|
53
59
|
|
54
60
|
describe "from net income of 1000" do
|
55
61
|
let(:type) { :net }
|
62
|
+
let(:tax_year) { 2015 }
|
56
63
|
let(:income) { 1000 }
|
57
64
|
its(:rate) { should be == Rational(1, 20) }
|
58
65
|
its(:gross_income) { should be == "1052.63157894736842".to_d }
|
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::Philippines do
|
|
62
69
|
|
63
70
|
describe "from net income of 10000" do
|
64
71
|
let(:type) { :net }
|
72
|
+
let(:tax_year) { 2015 }
|
65
73
|
let(:income) { 10000 }
|
66
74
|
its(:rate) { should be == Rational(1, 19) }
|
67
75
|
its(:gross_income) { should be == "10555.5555555555556".to_d }
|
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::Philippines do
|
|
71
79
|
|
72
80
|
describe "from net income of 100000" do
|
73
81
|
let(:type) { :net }
|
82
|
+
let(:tax_year) { 2015 }
|
74
83
|
let(:income) { 100000 }
|
75
84
|
its(:rate) { should be == Rational(29, 189) }
|
76
85
|
its(:gross_income) { should be == 118125 }
|
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::Philippines do
|
|
80
89
|
|
81
90
|
describe "from net income of 100000000" do
|
82
91
|
let(:type) { :net }
|
92
|
+
let(:tax_year) { 2015 }
|
83
93
|
let(:income) { 100000000 }
|
84
94
|
its(:rate) { should be == Rational(55, 172) }
|
85
95
|
its(:gross_income) { should be == "147007352.94117647".to_d }
|
@@ -1,8 +1,9 @@
|
|
1
1
|
describe IncomeTax::Countries::Pitcairn do
|
2
|
-
subject(:result) { described_class.new(income: income, income_type: type) }
|
2
|
+
subject(:result) { described_class.new(income: income, income_type: type, tax_year: tax_year) }
|
3
3
|
let(:type) { :gross }
|
4
4
|
|
5
5
|
describe "from gross income of 0" do
|
6
|
+
let(:tax_year) { 2015 }
|
6
7
|
let(:income) { 0 }
|
7
8
|
its(:rate) { should be == Rational(0, 1) }
|
8
9
|
its(:gross_income) { should be == 0 }
|
@@ -11,6 +12,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
11
12
|
end
|
12
13
|
|
13
14
|
describe "from gross income of 1000" do
|
15
|
+
let(:tax_year) { 2015 }
|
14
16
|
let(:income) { 1000 }
|
15
17
|
its(:rate) { should be == Rational(0, 1) }
|
16
18
|
its(:gross_income) { should be == 1000 }
|
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
19
21
|
end
|
20
22
|
|
21
23
|
describe "from gross income of 10000" do
|
24
|
+
let(:tax_year) { 2015 }
|
22
25
|
let(:income) { 10000 }
|
23
26
|
its(:rate) { should be == Rational(0, 1) }
|
24
27
|
its(:gross_income) { should be == 10000 }
|
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
27
30
|
end
|
28
31
|
|
29
32
|
describe "from gross income of 100000" do
|
33
|
+
let(:tax_year) { 2015 }
|
30
34
|
let(:income) { 100000 }
|
31
35
|
its(:rate) { should be == Rational(0, 1) }
|
32
36
|
its(:gross_income) { should be == 100000 }
|
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
35
39
|
end
|
36
40
|
|
37
41
|
describe "from gross income of 100000000" do
|
42
|
+
let(:tax_year) { 2015 }
|
38
43
|
let(:income) { 100000000 }
|
39
44
|
its(:rate) { should be == Rational(0, 1) }
|
40
45
|
its(:gross_income) { should be == 100000000 }
|
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
44
49
|
|
45
50
|
describe "from net income of 0" do
|
46
51
|
let(:type) { :net }
|
52
|
+
let(:tax_year) { 2015 }
|
47
53
|
let(:income) { 0 }
|
48
54
|
its(:rate) { should be == Rational(0, 1) }
|
49
55
|
its(:gross_income) { should be == 0 }
|
@@ -53,6 +59,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
53
59
|
|
54
60
|
describe "from net income of 1000" do
|
55
61
|
let(:type) { :net }
|
62
|
+
let(:tax_year) { 2015 }
|
56
63
|
let(:income) { 1000 }
|
57
64
|
its(:rate) { should be == Rational(0, 1) }
|
58
65
|
its(:gross_income) { should be == 1000 }
|
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
62
69
|
|
63
70
|
describe "from net income of 10000" do
|
64
71
|
let(:type) { :net }
|
72
|
+
let(:tax_year) { 2015 }
|
65
73
|
let(:income) { 10000 }
|
66
74
|
its(:rate) { should be == Rational(0, 1) }
|
67
75
|
its(:gross_income) { should be == 10000 }
|
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
71
79
|
|
72
80
|
describe "from net income of 100000" do
|
73
81
|
let(:type) { :net }
|
82
|
+
let(:tax_year) { 2015 }
|
74
83
|
let(:income) { 100000 }
|
75
84
|
its(:rate) { should be == Rational(0, 1) }
|
76
85
|
its(:gross_income) { should be == 100000 }
|
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::Pitcairn do
|
|
80
89
|
|
81
90
|
describe "from net income of 100000000" do
|
82
91
|
let(:type) { :net }
|
92
|
+
let(:tax_year) { 2015 }
|
83
93
|
let(:income) { 100000000 }
|
84
94
|
its(:rate) { should be == Rational(0, 1) }
|
85
95
|
its(:gross_income) { should be == 100000000 }
|
@@ -1,8 +1,9 @@
|
|
1
1
|
describe IncomeTax::Countries::Poland do
|
2
|
-
subject(:result) { described_class.new(income: income, income_type: type) }
|
2
|
+
subject(:result) { described_class.new(income: income, income_type: type, tax_year: tax_year) }
|
3
3
|
let(:type) { :gross }
|
4
4
|
|
5
5
|
describe "from gross income of 0" do
|
6
|
+
let(:tax_year) { 2015 }
|
6
7
|
let(:income) { 0 }
|
7
8
|
its(:rate) { should be == Rational(0, 1) }
|
8
9
|
its(:gross_income) { should be == 0 }
|
@@ -11,6 +12,7 @@ describe IncomeTax::Countries::Poland do
|
|
11
12
|
end
|
12
13
|
|
13
14
|
describe "from gross income of 1000" do
|
15
|
+
let(:tax_year) { 2015 }
|
14
16
|
let(:income) { 1000 }
|
15
17
|
its(:rate) { should be == Rational(0, 1) }
|
16
18
|
its(:gross_income) { should be == 1000 }
|
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::Poland do
|
|
19
21
|
end
|
20
22
|
|
21
23
|
describe "from gross income of 10000" do
|
24
|
+
let(:tax_year) { 2015 }
|
22
25
|
let(:income) { 10000 }
|
23
26
|
its(:rate) { should be == Rational(24, 193) }
|
24
27
|
its(:gross_income) { should be == 10000 }
|
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::Poland do
|
|
27
30
|
end
|
28
31
|
|
29
32
|
describe "from gross income of 100000" do
|
33
|
+
let(:tax_year) { 2015 }
|
30
34
|
let(:income) { 100000 }
|
31
35
|
its(:rate) { should be == Rational(22, 113) }
|
32
36
|
its(:gross_income) { should be == 100000 }
|
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::Poland do
|
|
35
39
|
end
|
36
40
|
|
37
41
|
describe "from gross income of 100000000" do
|
42
|
+
let(:tax_year) { 2015 }
|
38
43
|
let(:income) { 100000000 }
|
39
44
|
its(:rate) { should be == Rational(95, 297) }
|
40
45
|
its(:gross_income) { should be == 100000000 }
|
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::Poland do
|
|
44
49
|
|
45
50
|
describe "from net income of 0" do
|
46
51
|
let(:type) { :net }
|
52
|
+
let(:tax_year) { 2015 }
|
47
53
|
let(:income) { 0 }
|
48
54
|
its(:rate) { should be == Rational(0, 1) }
|
49
55
|
its(:gross_income) { should be == 0 }
|
@@ -53,6 +59,7 @@ describe IncomeTax::Countries::Poland do
|
|
53
59
|
|
54
60
|
describe "from net income of 1000" do
|
55
61
|
let(:type) { :net }
|
62
|
+
let(:tax_year) { 2015 }
|
56
63
|
let(:income) { 1000 }
|
57
64
|
its(:rate) { should be == Rational(0, 1) }
|
58
65
|
its(:gross_income) { should be == 1000 }
|
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::Poland do
|
|
62
69
|
|
63
70
|
describe "from net income of 10000" do
|
64
71
|
let(:type) { :net }
|
72
|
+
let(:tax_year) { 2015 }
|
65
73
|
let(:income) { 10000 }
|
66
74
|
its(:rate) { should be == Rational(32, 243) }
|
67
75
|
its(:gross_income) { should be == "11516.609756097561".to_d }
|
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::Poland do
|
|
71
79
|
|
72
80
|
describe "from net income of 100000" do
|
73
81
|
let(:type) { :net }
|
82
|
+
let(:tax_year) { 2015 }
|
74
83
|
let(:income) { 100000 }
|
75
84
|
its(:rate) { should be == Rational(67, 301) }
|
76
85
|
its(:gross_income) { should be == "128631.911764705882".to_d }
|
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::Poland do
|
|
80
89
|
|
81
90
|
describe "from net income of 100000000" do
|
82
91
|
let(:type) { :net }
|
92
|
+
let(:tax_year) { 2015 }
|
83
93
|
let(:income) { 100000000 }
|
84
94
|
its(:rate) { should be == Rational(135, 422) }
|
85
95
|
its(:gross_income) { should be == "147040396.617647058".to_d }
|
@@ -1,8 +1,9 @@
|
|
1
1
|
describe IncomeTax::Countries::Portugal do
|
2
|
-
subject(:result) { described_class.new(income: income, income_type: type) }
|
2
|
+
subject(:result) { described_class.new(income: income, income_type: type, tax_year: tax_year) }
|
3
3
|
let(:type) { :gross }
|
4
4
|
|
5
5
|
describe "from gross income of 0" do
|
6
|
+
let(:tax_year) { 2015 }
|
6
7
|
let(:income) { 0 }
|
7
8
|
its(:rate) { should be == Rational(0, 1) }
|
8
9
|
its(:gross_income) { should be == 0 }
|
@@ -11,6 +12,7 @@ describe IncomeTax::Countries::Portugal do
|
|
11
12
|
end
|
12
13
|
|
13
14
|
describe "from gross income of 1000" do
|
15
|
+
let(:tax_year) { 2015 }
|
14
16
|
let(:income) { 1000 }
|
15
17
|
its(:rate) { should be == Rational(29, 200) }
|
16
18
|
its(:gross_income) { should be == 1000 }
|
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::Portugal do
|
|
19
21
|
end
|
20
22
|
|
21
23
|
describe "from gross income of 10000" do
|
24
|
+
let(:tax_year) { 2015 }
|
22
25
|
let(:income) { 10000 }
|
23
26
|
its(:rate) { should be == Rational(23, 123) }
|
24
27
|
its(:gross_income) { should be == 10000 }
|
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::Portugal do
|
|
27
30
|
end
|
28
31
|
|
29
32
|
describe "from gross income of 100000" do
|
33
|
+
let(:tax_year) { 2015 }
|
30
34
|
let(:income) { 100000 }
|
31
35
|
its(:rate) { should be == Rational(151, 392) }
|
32
36
|
its(:gross_income) { should be == 100000 }
|
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::Portugal do
|
|
35
39
|
end
|
36
40
|
|
37
41
|
describe "from gross income of 100000000" do
|
42
|
+
let(:tax_year) { 2015 }
|
38
43
|
let(:income) { 100000000 }
|
39
44
|
its(:rate) { should be == Rational(191, 398) }
|
40
45
|
its(:gross_income) { should be == 100000000 }
|
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::Portugal do
|
|
44
49
|
|
45
50
|
describe "from net income of 0" do
|
46
51
|
let(:type) { :net }
|
52
|
+
let(:tax_year) { 2015 }
|
47
53
|
let(:income) { 0 }
|
48
54
|
its(:rate) { should be == Rational(0, 1) }
|
49
55
|
its(:gross_income) { should be == 0 }
|
@@ -53,6 +59,7 @@ describe IncomeTax::Countries::Portugal do
|
|
53
59
|
|
54
60
|
describe "from net income of 1000" do
|
55
61
|
let(:type) { :net }
|
62
|
+
let(:tax_year) { 2015 }
|
56
63
|
let(:income) { 1000 }
|
57
64
|
its(:rate) { should be == Rational(29, 200) }
|
58
65
|
its(:gross_income) { should be == "1169.5906432748538".to_d }
|
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::Portugal do
|
|
62
69
|
|
63
70
|
describe "from net income of 10000" do
|
64
71
|
let(:type) { :net }
|
72
|
+
let(:tax_year) { 2015 }
|
65
73
|
let(:income) { 10000 }
|
66
74
|
its(:rate) { should be == Rational(17, 82) }
|
67
75
|
its(:gross_income) { should be == "12615.3846153846154".to_d }
|
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::Portugal do
|
|
71
79
|
|
72
80
|
describe "from net income of 100000" do
|
73
81
|
let(:type) { :net }
|
82
|
+
let(:tax_year) { 2015 }
|
74
83
|
let(:income) { 100000 }
|
75
84
|
its(:rate) { should be == Rational(20, 47) }
|
76
85
|
its(:gross_income) { should be == "174076.923076923077".to_d }
|
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::Portugal do
|
|
80
89
|
|
81
90
|
describe "from net income of 100000000" do
|
82
91
|
let(:type) { :net }
|
92
|
+
let(:tax_year) { 2015 }
|
83
93
|
let(:income) { 100000000 }
|
84
94
|
its(:rate) { should be == Rational(335, 698) }
|
85
95
|
its(:gross_income) { should be == "192289461.538461538".to_d }
|