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.
Files changed (396) hide show
  1. checksums.yaml +4 -4
  2. data/lib/income_tax/countries/austria.rb +13 -5
  3. data/lib/income_tax/countries/france.rb +9 -1
  4. data/lib/income_tax/countries/germany.rb +59 -18
  5. data/lib/income_tax/countries/germany/rates.tsv +10 -0
  6. data/lib/income_tax/countries/greece.rb +3 -2
  7. data/lib/income_tax/countries/singapore.rb +2 -11
  8. data/lib/income_tax/countries/switzerland/aargau.rb +1 -1
  9. data/lib/income_tax/countries/switzerland/appenzell_inner.rb +1 -1
  10. data/lib/income_tax/countries/switzerland/appenzell_outer.rb +1 -1
  11. data/lib/income_tax/countries/switzerland/basel_city.rb +1 -1
  12. data/lib/income_tax/countries/switzerland/basel_land.rb +1 -1
  13. data/lib/income_tax/countries/switzerland/bern.rb +1 -1
  14. data/lib/income_tax/countries/switzerland/data/aargau.dat +0 -0
  15. data/lib/income_tax/countries/switzerland/data/appenzell_inner.dat +0 -0
  16. data/lib/income_tax/countries/switzerland/data/appenzell_outer.dat +0 -0
  17. data/lib/income_tax/countries/switzerland/data/basel_city.dat +0 -0
  18. data/lib/income_tax/countries/switzerland/data/basel_land.dat +0 -0
  19. data/lib/income_tax/countries/switzerland/data/bern.dat +0 -0
  20. data/lib/income_tax/countries/switzerland/data/fribourg.dat +0 -0
  21. data/lib/income_tax/countries/switzerland/data/geneva.dat +0 -0
  22. data/lib/income_tax/countries/switzerland/data/glarus.dat +0 -0
  23. data/lib/income_tax/countries/switzerland/data/grisons.dat +0 -0
  24. data/lib/income_tax/countries/switzerland/data/jura.dat +0 -0
  25. data/lib/income_tax/countries/switzerland/data/lucerne.dat +0 -0
  26. data/lib/income_tax/countries/switzerland/data/neuchatel.dat +0 -0
  27. data/lib/income_tax/countries/switzerland/data/nidwalden.dat +0 -0
  28. data/lib/income_tax/countries/switzerland/data/obwalden.dat +0 -0
  29. data/lib/income_tax/countries/switzerland/data/schaffhausen.dat +0 -0
  30. data/lib/income_tax/countries/switzerland/data/schwyz.dat +0 -0
  31. data/lib/income_tax/countries/switzerland/data/solothurn.dat +0 -0
  32. data/lib/income_tax/countries/switzerland/data/st_gallen.dat +0 -0
  33. data/lib/income_tax/countries/switzerland/data/thurgau.dat +0 -0
  34. data/lib/income_tax/countries/switzerland/data/ticino.dat +0 -0
  35. data/lib/income_tax/countries/switzerland/data/uri.dat +0 -0
  36. data/lib/income_tax/countries/switzerland/data/valais.dat +0 -0
  37. data/lib/income_tax/countries/switzerland/data/vaud.dat +0 -0
  38. data/lib/income_tax/countries/switzerland/data/zug.dat +0 -0
  39. data/lib/income_tax/countries/switzerland/data/zurich.dat +0 -0
  40. data/lib/income_tax/countries/switzerland/fribourg.rb +1 -1
  41. data/lib/income_tax/countries/switzerland/geneva.rb +1 -1
  42. data/lib/income_tax/countries/switzerland/glarus.rb +1 -1
  43. data/lib/income_tax/countries/switzerland/grisons.rb +1 -1
  44. data/lib/income_tax/countries/switzerland/jura.rb +1 -1
  45. data/lib/income_tax/countries/switzerland/lucerne.rb +1 -1
  46. data/lib/income_tax/countries/switzerland/neuchatel.rb +1 -1
  47. data/lib/income_tax/countries/switzerland/nidwalden.rb +1 -1
  48. data/lib/income_tax/countries/switzerland/obwalden.rb +1 -1
  49. data/lib/income_tax/countries/switzerland/schaffhausen.rb +1 -1
  50. data/lib/income_tax/countries/switzerland/schwyz.rb +1 -1
  51. data/lib/income_tax/countries/switzerland/solothurn.rb +1 -1
  52. data/lib/income_tax/countries/switzerland/st_gallen.rb +1 -1
  53. data/lib/income_tax/countries/switzerland/thurgau.rb +1 -1
  54. data/lib/income_tax/countries/switzerland/ticino.rb +1 -1
  55. data/lib/income_tax/countries/switzerland/uri.rb +1 -1
  56. data/lib/income_tax/countries/switzerland/valais.rb +1 -1
  57. data/lib/income_tax/countries/switzerland/vaud.rb +1 -1
  58. data/lib/income_tax/countries/switzerland/zug.rb +1 -1
  59. data/lib/income_tax/countries/switzerland/zurich.rb +1 -1
  60. data/lib/income_tax/countries/united_kingdom.rb +12 -4
  61. data/lib/income_tax/models/generic.rb +5 -1
  62. data/lib/income_tax/models/progressive.rb +27 -5
  63. data/lib/income_tax/rate.rb +1 -0
  64. data/lib/income_tax/register.rb +6 -0
  65. data/lib/income_tax/version.rb +1 -1
  66. data/locations.md +250 -13
  67. data/readme.md +3 -2
  68. data/script/generate_switzerland.rb +10 -6
  69. data/spec/income_tax/countries/afghanistan_spec.rb +11 -1
  70. data/spec/income_tax/countries/aland_spec.rb +11 -1
  71. data/spec/income_tax/countries/albania_spec.rb +11 -1
  72. data/spec/income_tax/countries/algeria_spec.rb +11 -1
  73. data/spec/income_tax/countries/american_samoa_spec.rb +11 -1
  74. data/spec/income_tax/countries/andorra_spec.rb +11 -1
  75. data/spec/income_tax/countries/angola_spec.rb +11 -1
  76. data/spec/income_tax/countries/anguilla_spec.rb +11 -1
  77. data/spec/income_tax/countries/antigua_and_barbuda_spec.rb +11 -1
  78. data/spec/income_tax/countries/argentina_spec.rb +11 -1
  79. data/spec/income_tax/countries/armenia_spec.rb +11 -1
  80. data/spec/income_tax/countries/aruba_spec.rb +11 -1
  81. data/spec/income_tax/countries/australia_spec.rb +11 -1
  82. data/spec/income_tax/countries/austria_spec.rb +185 -74
  83. data/spec/income_tax/countries/azerbaijan_spec.rb +11 -1
  84. data/spec/income_tax/countries/bahamas_spec.rb +11 -1
  85. data/spec/income_tax/countries/bahrain_spec.rb +11 -1
  86. data/spec/income_tax/countries/bangladesh_spec.rb +11 -1
  87. data/spec/income_tax/countries/barbados_spec.rb +11 -1
  88. data/spec/income_tax/countries/belarus_spec.rb +11 -1
  89. data/spec/income_tax/countries/belgium_spec.rb +11 -1
  90. data/spec/income_tax/countries/belize_spec.rb +11 -1
  91. data/spec/income_tax/countries/benin_spec.rb +11 -1
  92. data/spec/income_tax/countries/bermuda_spec.rb +11 -1
  93. data/spec/income_tax/countries/bhutan_spec.rb +11 -1
  94. data/spec/income_tax/countries/bolivia_spec.rb +11 -1
  95. data/spec/income_tax/countries/bosnia_and_herzegovina_spec.rb +11 -1
  96. data/spec/income_tax/countries/botswana_spec.rb +11 -1
  97. data/spec/income_tax/countries/bouvet_island_spec.rb +11 -1
  98. data/spec/income_tax/countries/brazil_spec.rb +11 -1
  99. data/spec/income_tax/countries/british_indian_ocean_territory_spec.rb +35 -25
  100. data/spec/income_tax/countries/brunei_spec.rb +11 -1
  101. data/spec/income_tax/countries/bulgaria_spec.rb +11 -1
  102. data/spec/income_tax/countries/burkina_faso_spec.rb +11 -1
  103. data/spec/income_tax/countries/burundi_spec.rb +11 -1
  104. data/spec/income_tax/countries/cambodia_spec.rb +11 -1
  105. data/spec/income_tax/countries/cameroon_spec.rb +11 -1
  106. data/spec/income_tax/countries/canada_spec.rb +11 -1
  107. data/spec/income_tax/countries/cape_verde_spec.rb +11 -1
  108. data/spec/income_tax/countries/caribbean_netherlands_spec.rb +11 -1
  109. data/spec/income_tax/countries/cayman_islands_spec.rb +11 -1
  110. data/spec/income_tax/countries/central_african_republic_spec.rb +11 -1
  111. data/spec/income_tax/countries/chad_spec.rb +11 -1
  112. data/spec/income_tax/countries/chile_spec.rb +11 -1
  113. data/spec/income_tax/countries/china_spec.rb +11 -1
  114. data/spec/income_tax/countries/christmas_island_spec.rb +11 -1
  115. data/spec/income_tax/countries/cocos_keeling_islands_spec.rb +11 -1
  116. data/spec/income_tax/countries/colombia_spec.rb +11 -1
  117. data/spec/income_tax/countries/comoros_spec.rb +11 -1
  118. data/spec/income_tax/countries/congo_republic_spec.rb +11 -1
  119. data/spec/income_tax/countries/congo_spec.rb +11 -1
  120. data/spec/income_tax/countries/cook_islands_spec.rb +11 -1
  121. data/spec/income_tax/countries/costa_rica_spec.rb +11 -1
  122. data/spec/income_tax/countries/croatia_spec.rb +11 -1
  123. data/spec/income_tax/countries/cuba_spec.rb +11 -1
  124. data/spec/income_tax/countries/curacao_spec.rb +11 -1
  125. data/spec/income_tax/countries/cyprus_spec.rb +11 -1
  126. data/spec/income_tax/countries/czech_republic_spec.rb +11 -1
  127. data/spec/income_tax/countries/denmark_spec.rb +11 -1
  128. data/spec/income_tax/countries/djibouti_spec.rb +11 -1
  129. data/spec/income_tax/countries/dominica_spec.rb +11 -1
  130. data/spec/income_tax/countries/dominican_republic_spec.rb +11 -1
  131. data/spec/income_tax/countries/ecuador_spec.rb +11 -1
  132. data/spec/income_tax/countries/egypt_spec.rb +11 -1
  133. data/spec/income_tax/countries/el_salvador_spec.rb +11 -1
  134. data/spec/income_tax/countries/equatorial_guinea_spec.rb +11 -1
  135. data/spec/income_tax/countries/eritrea_spec.rb +11 -1
  136. data/spec/income_tax/countries/estonia_spec.rb +11 -1
  137. data/spec/income_tax/countries/ethiopia_spec.rb +11 -1
  138. data/spec/income_tax/countries/falkland_islands_spec.rb +11 -1
  139. data/spec/income_tax/countries/faroe_islands_spec.rb +11 -1
  140. data/spec/income_tax/countries/fiji_spec.rb +11 -1
  141. data/spec/income_tax/countries/finland_spec.rb +88 -75
  142. data/spec/income_tax/countries/france_spec.rb +185 -74
  143. data/spec/income_tax/countries/french_guiana_spec.rb +11 -1
  144. data/spec/income_tax/countries/french_polynesia_spec.rb +11 -1
  145. data/spec/income_tax/countries/french_southern_territories_spec.rb +11 -1
  146. data/spec/income_tax/countries/gabon_spec.rb +11 -1
  147. data/spec/income_tax/countries/gambia_spec.rb +11 -1
  148. data/spec/income_tax/countries/georgia_spec.rb +11 -1
  149. data/spec/income_tax/countries/germany_spec.rb +864 -67
  150. data/spec/income_tax/countries/ghana_spec.rb +11 -1
  151. data/spec/income_tax/countries/gibraltar_spec.rb +11 -1
  152. data/spec/income_tax/countries/greece_spec.rb +41 -31
  153. data/spec/income_tax/countries/greenland_spec.rb +11 -1
  154. data/spec/income_tax/countries/grenada_spec.rb +11 -1
  155. data/spec/income_tax/countries/guadeloupe_spec.rb +11 -1
  156. data/spec/income_tax/countries/guam_spec.rb +11 -1
  157. data/spec/income_tax/countries/guatemala_spec.rb +11 -1
  158. data/spec/income_tax/countries/guernsey_spec.rb +11 -1
  159. data/spec/income_tax/countries/guinea_bissau_spec.rb +11 -1
  160. data/spec/income_tax/countries/guinea_spec.rb +11 -1
  161. data/spec/income_tax/countries/guyana_spec.rb +11 -1
  162. data/spec/income_tax/countries/haiti_spec.rb +11 -1
  163. data/spec/income_tax/countries/heard_and_mcdonald_islands_spec.rb +11 -1
  164. data/spec/income_tax/countries/honduras_spec.rb +11 -1
  165. data/spec/income_tax/countries/hong_kong_spec.rb +11 -1
  166. data/spec/income_tax/countries/hungary_spec.rb +11 -1
  167. data/spec/income_tax/countries/iceland_spec.rb +11 -1
  168. data/spec/income_tax/countries/india_spec.rb +11 -1
  169. data/spec/income_tax/countries/indonesia_spec.rb +11 -1
  170. data/spec/income_tax/countries/iran_spec.rb +11 -1
  171. data/spec/income_tax/countries/iraq_spec.rb +11 -1
  172. data/spec/income_tax/countries/ireland_spec.rb +11 -1
  173. data/spec/income_tax/countries/isle_of_man_spec.rb +11 -1
  174. data/spec/income_tax/countries/israel_spec.rb +11 -1
  175. data/spec/income_tax/countries/italy_spec.rb +11 -1
  176. data/spec/income_tax/countries/ivory_coast_spec.rb +11 -1
  177. data/spec/income_tax/countries/jamaica_spec.rb +11 -1
  178. data/spec/income_tax/countries/japan_spec.rb +11 -1
  179. data/spec/income_tax/countries/jersey_spec.rb +11 -1
  180. data/spec/income_tax/countries/jordan_spec.rb +11 -1
  181. data/spec/income_tax/countries/kazakhstan_spec.rb +11 -1
  182. data/spec/income_tax/countries/kenya_spec.rb +11 -1
  183. data/spec/income_tax/countries/kiribati_spec.rb +11 -1
  184. data/spec/income_tax/countries/kosovo_spec.rb +11 -1
  185. data/spec/income_tax/countries/kuwait_spec.rb +11 -1
  186. data/spec/income_tax/countries/kyrgyzstan_spec.rb +11 -1
  187. data/spec/income_tax/countries/laos_spec.rb +11 -1
  188. data/spec/income_tax/countries/latvia_spec.rb +11 -1
  189. data/spec/income_tax/countries/lebanon_spec.rb +11 -1
  190. data/spec/income_tax/countries/lesotho_spec.rb +11 -1
  191. data/spec/income_tax/countries/liberia_spec.rb +11 -1
  192. data/spec/income_tax/countries/libya_spec.rb +11 -1
  193. data/spec/income_tax/countries/liechtenstein_spec.rb +11 -1
  194. data/spec/income_tax/countries/lithuania_spec.rb +11 -1
  195. data/spec/income_tax/countries/luxembourg_spec.rb +11 -1
  196. data/spec/income_tax/countries/macao_spec.rb +11 -1
  197. data/spec/income_tax/countries/macedonia_spec.rb +11 -1
  198. data/spec/income_tax/countries/madagascar_spec.rb +11 -1
  199. data/spec/income_tax/countries/malawi_spec.rb +11 -1
  200. data/spec/income_tax/countries/malaysia_spec.rb +11 -1
  201. data/spec/income_tax/countries/maldives_spec.rb +11 -1
  202. data/spec/income_tax/countries/mali_spec.rb +11 -1
  203. data/spec/income_tax/countries/malta_spec.rb +11 -1
  204. data/spec/income_tax/countries/marshall_islands_spec.rb +11 -1
  205. data/spec/income_tax/countries/martinique_spec.rb +11 -1
  206. data/spec/income_tax/countries/mauritania_spec.rb +11 -1
  207. data/spec/income_tax/countries/mauritius_spec.rb +11 -1
  208. data/spec/income_tax/countries/mayotte_spec.rb +11 -1
  209. data/spec/income_tax/countries/mexico_spec.rb +11 -1
  210. data/spec/income_tax/countries/micronesia_spec.rb +11 -1
  211. data/spec/income_tax/countries/moldova_spec.rb +11 -1
  212. data/spec/income_tax/countries/monaco_spec.rb +11 -1
  213. data/spec/income_tax/countries/mongolia_spec.rb +11 -1
  214. data/spec/income_tax/countries/montenegro_spec.rb +11 -1
  215. data/spec/income_tax/countries/montserrat_spec.rb +11 -1
  216. data/spec/income_tax/countries/morocco_spec.rb +11 -1
  217. data/spec/income_tax/countries/mozambique_spec.rb +11 -1
  218. data/spec/income_tax/countries/myanmar_spec.rb +11 -1
  219. data/spec/income_tax/countries/namibia_spec.rb +11 -1
  220. data/spec/income_tax/countries/nauru_spec.rb +11 -1
  221. data/spec/income_tax/countries/nepal_spec.rb +11 -1
  222. data/spec/income_tax/countries/netherlands_antilles_spec.rb +11 -1
  223. data/spec/income_tax/countries/netherlands_spec.rb +11 -1
  224. data/spec/income_tax/countries/new_caledonia_spec.rb +11 -1
  225. data/spec/income_tax/countries/new_zealand_spec.rb +11 -1
  226. data/spec/income_tax/countries/nicaragua_spec.rb +11 -1
  227. data/spec/income_tax/countries/niger_spec.rb +11 -1
  228. data/spec/income_tax/countries/nigeria_spec.rb +11 -1
  229. data/spec/income_tax/countries/niue_spec.rb +11 -1
  230. data/spec/income_tax/countries/norfolk_island_spec.rb +11 -1
  231. data/spec/income_tax/countries/north_korea_spec.rb +11 -1
  232. data/spec/income_tax/countries/northern_mariana_islands_spec.rb +11 -1
  233. data/spec/income_tax/countries/norway_spec.rb +88 -75
  234. data/spec/income_tax/countries/oman_spec.rb +11 -1
  235. data/spec/income_tax/countries/pakistan_spec.rb +11 -1
  236. data/spec/income_tax/countries/palau_spec.rb +11 -1
  237. data/spec/income_tax/countries/palestinian_territory_spec.rb +11 -1
  238. data/spec/income_tax/countries/panama_spec.rb +11 -1
  239. data/spec/income_tax/countries/papua_new_guinea_spec.rb +11 -1
  240. data/spec/income_tax/countries/paraguay_spec.rb +11 -1
  241. data/spec/income_tax/countries/peru_spec.rb +11 -1
  242. data/spec/income_tax/countries/philippines_spec.rb +11 -1
  243. data/spec/income_tax/countries/pitcairn_spec.rb +11 -1
  244. data/spec/income_tax/countries/poland_spec.rb +11 -1
  245. data/spec/income_tax/countries/portugal_spec.rb +11 -1
  246. data/spec/income_tax/countries/puerto_rico_spec.rb +11 -1
  247. data/spec/income_tax/countries/qatar_spec.rb +11 -1
  248. data/spec/income_tax/countries/reunion_spec.rb +11 -1
  249. data/spec/income_tax/countries/romania_spec.rb +11 -1
  250. data/spec/income_tax/countries/russia_spec.rb +11 -1
  251. data/spec/income_tax/countries/rwanda_spec.rb +11 -1
  252. data/spec/income_tax/countries/saint_barthelemy_spec.rb +11 -1
  253. data/spec/income_tax/countries/saint_helena_spec.rb +11 -1
  254. data/spec/income_tax/countries/saint_kitts_and_nevis_spec.rb +11 -1
  255. data/spec/income_tax/countries/saint_lucia_spec.rb +11 -1
  256. data/spec/income_tax/countries/saint_martin_spec.rb +11 -1
  257. data/spec/income_tax/countries/saint_pierre_and_miquelon_spec.rb +11 -1
  258. data/spec/income_tax/countries/saint_vincent_and_the_grenedines_spec.rb +11 -1
  259. data/spec/income_tax/countries/samoa_spec.rb +11 -1
  260. data/spec/income_tax/countries/san_marino_spec.rb +11 -1
  261. data/spec/income_tax/countries/sao_tome_and_principe_spec.rb +11 -1
  262. data/spec/income_tax/countries/saudi_arabia_spec.rb +11 -1
  263. data/spec/income_tax/countries/senegal_spec.rb +11 -1
  264. data/spec/income_tax/countries/serbia_spec.rb +11 -1
  265. data/spec/income_tax/countries/seychelles_spec.rb +11 -1
  266. data/spec/income_tax/countries/sierra_leone_spec.rb +11 -1
  267. data/spec/income_tax/countries/singapore_spec.rb +185 -74
  268. data/spec/income_tax/countries/sint_maarten_spec.rb +11 -1
  269. data/spec/income_tax/countries/slovakia_spec.rb +11 -1
  270. data/spec/income_tax/countries/slovenia_spec.rb +11 -1
  271. data/spec/income_tax/countries/solomon_islands_spec.rb +11 -1
  272. data/spec/income_tax/countries/somalia_spec.rb +11 -1
  273. data/spec/income_tax/countries/south_africa_spec.rb +11 -1
  274. data/spec/income_tax/countries/south_georgia_and_the_south_sandwich_islands_spec.rb +35 -25
  275. data/spec/income_tax/countries/south_korea_spec.rb +11 -1
  276. data/spec/income_tax/countries/south_sudan_spec.rb +11 -1
  277. data/spec/income_tax/countries/spain_spec.rb +11 -1
  278. data/spec/income_tax/countries/sri_lanka_spec.rb +11 -1
  279. data/spec/income_tax/countries/sudan_spec.rb +11 -1
  280. data/spec/income_tax/countries/suriname_spec.rb +11 -1
  281. data/spec/income_tax/countries/svalbard_and_jan_mayen_spec.rb +11 -1
  282. data/spec/income_tax/countries/swaziland_spec.rb +11 -1
  283. data/spec/income_tax/countries/sweden_spec.rb +11 -1
  284. data/spec/income_tax/countries/switzerland/aargau_spec.rb +11 -1
  285. data/spec/income_tax/countries/switzerland/appenzell_inner_spec.rb +11 -1
  286. data/spec/income_tax/countries/switzerland/appenzell_outer_spec.rb +11 -1
  287. data/spec/income_tax/countries/switzerland/basel_city_spec.rb +11 -1
  288. data/spec/income_tax/countries/switzerland/basel_land_spec.rb +11 -1
  289. data/spec/income_tax/countries/switzerland/bern_spec.rb +11 -1
  290. data/spec/income_tax/countries/switzerland/fribourg_spec.rb +11 -1
  291. data/spec/income_tax/countries/switzerland/geneva_spec.rb +11 -1
  292. data/spec/income_tax/countries/switzerland/glarus_spec.rb +11 -1
  293. data/spec/income_tax/countries/switzerland/grisons_spec.rb +11 -1
  294. data/spec/income_tax/countries/switzerland/jura_spec.rb +11 -1
  295. data/spec/income_tax/countries/switzerland/lucerne_spec.rb +11 -1
  296. data/spec/income_tax/countries/switzerland/neuchatel_spec.rb +11 -1
  297. data/spec/income_tax/countries/switzerland/nidwalden_spec.rb +11 -1
  298. data/spec/income_tax/countries/switzerland/obwalden_spec.rb +11 -1
  299. data/spec/income_tax/countries/switzerland/schaffhausen_spec.rb +11 -1
  300. data/spec/income_tax/countries/switzerland/schwyz_spec.rb +11 -1
  301. data/spec/income_tax/countries/switzerland/solothurn_spec.rb +11 -1
  302. data/spec/income_tax/countries/switzerland/st_gallen_spec.rb +11 -1
  303. data/spec/income_tax/countries/switzerland/thurgau_spec.rb +11 -1
  304. data/spec/income_tax/countries/switzerland/ticino_spec.rb +11 -1
  305. data/spec/income_tax/countries/switzerland/uri_spec.rb +11 -1
  306. data/spec/income_tax/countries/switzerland/valais_spec.rb +11 -1
  307. data/spec/income_tax/countries/switzerland/vaud_spec.rb +11 -1
  308. data/spec/income_tax/countries/switzerland/zug_spec.rb +11 -1
  309. data/spec/income_tax/countries/switzerland/zurich_spec.rb +185 -74
  310. data/spec/income_tax/countries/switzerland_spec.rb +11 -1
  311. data/spec/income_tax/countries/syria_spec.rb +11 -1
  312. data/spec/income_tax/countries/taiwan_spec.rb +11 -1
  313. data/spec/income_tax/countries/tajikistan_spec.rb +11 -1
  314. data/spec/income_tax/countries/tanzania_spec.rb +11 -1
  315. data/spec/income_tax/countries/thailand_spec.rb +11 -1
  316. data/spec/income_tax/countries/timor_leste_spec.rb +11 -1
  317. data/spec/income_tax/countries/togo_spec.rb +11 -1
  318. data/spec/income_tax/countries/tokelau_spec.rb +11 -1
  319. data/spec/income_tax/countries/tonga_spec.rb +11 -1
  320. data/spec/income_tax/countries/trinidad_and_tobago_spec.rb +11 -1
  321. data/spec/income_tax/countries/tunisia_spec.rb +11 -1
  322. data/spec/income_tax/countries/turkey_spec.rb +11 -1
  323. data/spec/income_tax/countries/turkmenistan_spec.rb +11 -1
  324. data/spec/income_tax/countries/turks_and_caicos_islands_spec.rb +11 -1
  325. data/spec/income_tax/countries/tuvalu_spec.rb +11 -1
  326. data/spec/income_tax/countries/uganda_spec.rb +11 -1
  327. data/spec/income_tax/countries/ukraine_spec.rb +11 -1
  328. data/spec/income_tax/countries/united_arab_emirates_spec.rb +11 -1
  329. data/spec/income_tax/countries/united_kingdom_spec.rb +185 -74
  330. data/spec/income_tax/countries/united_states/alabama_spec.rb +11 -1
  331. data/spec/income_tax/countries/united_states/alaska_spec.rb +11 -1
  332. data/spec/income_tax/countries/united_states/arizona_spec.rb +11 -1
  333. data/spec/income_tax/countries/united_states/arkansas_spec.rb +11 -1
  334. data/spec/income_tax/countries/united_states/california_spec.rb +11 -1
  335. data/spec/income_tax/countries/united_states/colorado_spec.rb +11 -1
  336. data/spec/income_tax/countries/united_states/connecticut_spec.rb +11 -1
  337. data/spec/income_tax/countries/united_states/dc_spec.rb +11 -1
  338. data/spec/income_tax/countries/united_states/delaware_spec.rb +11 -1
  339. data/spec/income_tax/countries/united_states/florida_spec.rb +11 -1
  340. data/spec/income_tax/countries/united_states/georgia_spec.rb +11 -1
  341. data/spec/income_tax/countries/united_states/hawaii_spec.rb +11 -1
  342. data/spec/income_tax/countries/united_states/idaho_spec.rb +11 -1
  343. data/spec/income_tax/countries/united_states/illinois_spec.rb +11 -1
  344. data/spec/income_tax/countries/united_states/indiana_spec.rb +11 -1
  345. data/spec/income_tax/countries/united_states/iowa_spec.rb +11 -1
  346. data/spec/income_tax/countries/united_states/kansas_spec.rb +11 -1
  347. data/spec/income_tax/countries/united_states/kentucky_spec.rb +11 -1
  348. data/spec/income_tax/countries/united_states/louisiana_spec.rb +11 -1
  349. data/spec/income_tax/countries/united_states/maine_spec.rb +11 -1
  350. data/spec/income_tax/countries/united_states/maryland_spec.rb +11 -1
  351. data/spec/income_tax/countries/united_states/massachusetts_spec.rb +11 -1
  352. data/spec/income_tax/countries/united_states/michigan_spec.rb +11 -1
  353. data/spec/income_tax/countries/united_states/minnesota_spec.rb +11 -1
  354. data/spec/income_tax/countries/united_states/mississippi_spec.rb +11 -1
  355. data/spec/income_tax/countries/united_states/missouri_spec.rb +11 -1
  356. data/spec/income_tax/countries/united_states/montana_spec.rb +11 -1
  357. data/spec/income_tax/countries/united_states/nebraska_spec.rb +11 -1
  358. data/spec/income_tax/countries/united_states/nevada_spec.rb +11 -1
  359. data/spec/income_tax/countries/united_states/new_hampshire_spec.rb +11 -1
  360. data/spec/income_tax/countries/united_states/new_jersey_spec.rb +11 -1
  361. data/spec/income_tax/countries/united_states/new_mexico_spec.rb +11 -1
  362. data/spec/income_tax/countries/united_states/new_york_spec.rb +11 -1
  363. data/spec/income_tax/countries/united_states/north_carolina_spec.rb +11 -1
  364. data/spec/income_tax/countries/united_states/north_dakota_spec.rb +11 -1
  365. data/spec/income_tax/countries/united_states/ohio_spec.rb +11 -1
  366. data/spec/income_tax/countries/united_states/oklahoma_spec.rb +11 -1
  367. data/spec/income_tax/countries/united_states/oregon_spec.rb +11 -1
  368. data/spec/income_tax/countries/united_states/pennsylvania_spec.rb +11 -1
  369. data/spec/income_tax/countries/united_states/rhode_island_spec.rb +11 -1
  370. data/spec/income_tax/countries/united_states/south_carolina_spec.rb +11 -1
  371. data/spec/income_tax/countries/united_states/south_dakota_spec.rb +11 -1
  372. data/spec/income_tax/countries/united_states/tennessee_spec.rb +11 -1
  373. data/spec/income_tax/countries/united_states/texas_spec.rb +11 -1
  374. data/spec/income_tax/countries/united_states/utah_spec.rb +11 -1
  375. data/spec/income_tax/countries/united_states/vermont_spec.rb +11 -1
  376. data/spec/income_tax/countries/united_states/virginia_spec.rb +11 -1
  377. data/spec/income_tax/countries/united_states/washington_spec.rb +11 -1
  378. data/spec/income_tax/countries/united_states/west_virginia_spec.rb +11 -1
  379. data/spec/income_tax/countries/united_states/wisconsin_spec.rb +11 -1
  380. data/spec/income_tax/countries/united_states/wyoming_spec.rb +11 -1
  381. data/spec/income_tax/countries/united_states_minor_outlying_islands_spec.rb +11 -1
  382. data/spec/income_tax/countries/united_states_spec.rb +11 -1
  383. data/spec/income_tax/countries/uruguay_spec.rb +11 -1
  384. data/spec/income_tax/countries/uzbekistan_spec.rb +11 -1
  385. data/spec/income_tax/countries/vanuatu_spec.rb +11 -1
  386. data/spec/income_tax/countries/vatican_spec.rb +11 -1
  387. data/spec/income_tax/countries/venezuela_spec.rb +11 -1
  388. data/spec/income_tax/countries/vietnam_spec.rb +11 -1
  389. data/spec/income_tax/countries/virgin_islands_british_spec.rb +11 -1
  390. data/spec/income_tax/countries/virgin_islands_us_spec.rb +11 -1
  391. data/spec/income_tax/countries/wallis_and_futuna_spec.rb +11 -1
  392. data/spec/income_tax/countries/western_sahara_spec.rb +11 -1
  393. data/spec/income_tax/countries/yemen_spec.rb +11 -1
  394. data/spec/income_tax/countries/zambia_spec.rb +11 -1
  395. data/spec/income_tax/countries/zimbabwe_spec.rb +11 -1
  396. metadata +3 -2
@@ -1,8 +1,9 @@
1
1
  describe IncomeTax::Countries::UnitedStates::Indiana do
2
- subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, state: 'Indiana') }
2
+ subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, tax_year: tax_year, state: 'Indiana') }
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::UnitedStates::Indiana 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(27, 203) }
16
18
  its(:gross_income) { should be == 1000 }
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::UnitedStates::Indiana 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(27, 203) }
24
27
  its(:gross_income) { should be == 10000 }
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::UnitedStates::Indiana 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(56, 241) }
32
36
  its(:gross_income) { should be == 100000 }
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::UnitedStates::Indiana 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(1685, 3932) }
40
45
  its(:gross_income) { should be == 100000000 }
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::UnitedStates::Indiana 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::UnitedStates::Indiana 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(35, 276) }
58
65
  its(:gross_income) { should be == "1145.2372745030449269".to_d }
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::UnitedStates::Indiana 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(35, 276) }
67
75
  its(:gross_income) { should be == "11452.37274503044926".to_d }
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::UnitedStates::Indiana 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(79, 333) }
76
85
  its(:gross_income) { should be == "131103.24133919338159".to_d }
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::UnitedStates::Indiana 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(113, 277) }
85
95
  its(:gross_income) { should be == "168900206.157074175".to_d }
@@ -1,8 +1,9 @@
1
1
  describe IncomeTax::Countries::UnitedStates::Iowa do
2
- subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, state: 'Iowa') }
2
+ subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, tax_year: tax_year, state: 'Iowa') }
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::UnitedStates::Iowa 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(10, 97) }
16
18
  its(:gross_income) { should be == 1000 }
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::UnitedStates::Iowa 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(31, 254) }
24
27
  its(:gross_income) { should be == 10000 }
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::UnitedStates::Iowa 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(41, 162) }
32
36
  its(:gross_income) { should be == 100000 }
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::UnitedStates::Iowa 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(112, 249) }
40
45
  its(:gross_income) { should be == 100000000 }
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::UnitedStates::Iowa 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::UnitedStates::Iowa 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(48, 467) }
58
65
  its(:gross_income) { should be == "1114.567111111111111".to_d }
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::UnitedStates::Iowa 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(34, 281) }
67
75
  its(:gross_income) { should be == "11376.6021111111111".to_d }
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::UnitedStates::Iowa 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(84, 325) }
76
85
  its(:gross_income) { should be == "134852.972".to_d }
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::UnitedStates::Iowa 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(35, 82) }
85
95
  its(:gross_income) { should be == "174465772.164880794".to_d }
@@ -1,8 +1,9 @@
1
1
  describe IncomeTax::Countries::UnitedStates::Kansas do
2
- subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, state: 'Kansas') }
2
+ subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, tax_year: tax_year, state: 'Kansas') }
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::UnitedStates::Kansas 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::UnitedStates::Kansas 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(26, 215) }
24
27
  its(:gross_income) { should be == 10000 }
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::UnitedStates::Kansas 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(62, 255) }
32
36
  its(:gross_income) { should be == 100000 }
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::UnitedStates::Kansas 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(55, 124) }
40
45
  its(:gross_income) { should be == 100000000 }
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::UnitedStates::Kansas 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::UnitedStates::Kansas 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.111111111111111".to_d }
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::UnitedStates::Kansas 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(37, 316) }
67
75
  its(:gross_income) { should be == "11326.167637318716444".to_d }
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::UnitedStates::Kansas 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(72, 295) }
76
85
  its(:gross_income) { should be == "132288.3140756302521".to_d }
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::UnitedStates::Kansas 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(67, 162) }
85
95
  its(:gross_income) { should be == "170529162.2968723906".to_d }
@@ -1,8 +1,9 @@
1
1
  describe IncomeTax::Countries::UnitedStates::Kentucky do
2
- subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, state: 'Kentucky') }
2
+ subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, tax_year: tax_year, state: 'Kentucky') }
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::UnitedStates::Kentucky 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(36, 301) }
16
18
  its(:gross_income) { should be == 1000 }
@@ -19,6 +21,7 @@ describe IncomeTax::Countries::UnitedStates::Kentucky 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(59, 423) }
24
27
  its(:gross_income) { should be == 10000 }
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::UnitedStates::Kentucky 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(85, 332) }
32
36
  its(:gross_income) { should be == 100000 }
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::UnitedStates::Kentucky 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(251, 551) }
40
45
  its(:gross_income) { should be == 100000000 }
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::UnitedStates::Kentucky 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::UnitedStates::Kentucky 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(51, 440) }
58
65
  its(:gross_income) { should be == "1131.111111111111111".to_d }
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::UnitedStates::Kentucky 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(43, 324) }
67
75
  its(:gross_income) { should be == "11530.26185421089879".to_d }
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::UnitedStates::Kentucky 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(88, 349) }
76
85
  its(:gross_income) { should be == "133717.0079787234043".to_d }
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::UnitedStates::Kentucky 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(304, 727) }
85
95
  its(:gross_income) { should be == "171870211.9455403685".to_d }
@@ -1,8 +1,9 @@
1
1
  describe IncomeTax::Countries::UnitedStates::Louisiana do
2
- subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, state: 'Louisiana') }
2
+ subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, tax_year: tax_year, state: 'Louisiana') }
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::UnitedStates::Louisiana 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::UnitedStates::Louisiana 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, 211) }
24
27
  its(:gross_income) { should be == 10000 }
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::UnitedStates::Louisiana 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(62, 267) }
32
36
  its(:gross_income) { should be == 100000 }
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::UnitedStates::Louisiana 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(326, 755) }
40
45
  its(:gross_income) { should be == 100000000 }
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::UnitedStates::Louisiana 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::UnitedStates::Louisiana 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.111111111111111".to_d }
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::UnitedStates::Louisiana 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(37, 340) }
67
75
  its(:gross_income) { should be == "11221.1111111111111".to_d }
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::UnitedStates::Louisiana 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(83, 341) }
76
85
  its(:gross_income) { should be == "132170.625".to_d }
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::UnitedStates::Louisiana 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(173, 415) }
85
95
  its(:gross_income) { should be == "171486069.817880794".to_d }
@@ -1,8 +1,9 @@
1
1
  describe IncomeTax::Countries::UnitedStates::Maine do
2
- subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, state: 'Maine') }
2
+ subject(:result) { IncomeTax::Countries::UnitedStates.new(income: income, income_type: type, tax_year: tax_year, state: 'Maine') }
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::UnitedStates::Maine 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::UnitedStates::Maine 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(38, 359) }
24
27
  its(:gross_income) { should be == 10000 }
@@ -27,6 +30,7 @@ describe IncomeTax::Countries::UnitedStates::Maine 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(80, 297) }
32
36
  its(:gross_income) { should be == 100000 }
@@ -35,6 +39,7 @@ describe IncomeTax::Countries::UnitedStates::Maine 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(276, 581) }
40
45
  its(:gross_income) { should be == 100000000 }
@@ -44,6 +49,7 @@ describe IncomeTax::Countries::UnitedStates::Maine 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::UnitedStates::Maine 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.111111111111111".to_d }
@@ -62,6 +69,7 @@ describe IncomeTax::Countries::UnitedStates::Maine 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(25, 238) }
67
75
  its(:gross_income) { should be == "11173.6779560308972".to_d }
@@ -71,6 +79,7 @@ describe IncomeTax::Countries::UnitedStates::Maine 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(6, 23) }
76
85
  its(:gross_income) { should be == "135293.99273492667".to_d }
@@ -80,6 +89,7 @@ describe IncomeTax::Countries::UnitedStates::Maine 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(106, 249) }
85
95
  its(:gross_income) { should be == "174123167.112829191".to_d }