Sha256: a137195b1ee5331af62b72a9b160c1385750fa004cab06e467c4e4dd963872c3
Contents?: true
Size: 660 Bytes
Versions: 3
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' describe Taxedo do describe "::region" do pending "TOTEST" end describe "::tax_for" do context "when getting the quebec tax for 10$ in text format" do subject { Taxedo.tax_for 'quebec', 1000, format: :text } it { should eql "Sous-total .... 10,00$\nTPS ........... 0,50$\nTVQ ........... 1,00$\nTotal ......... 11,50$" } context "with a non_taxable rule" do subject { Taxedo.tax_for 'quebec', 1000, format: :text, :rule => 'non_taxable' } it { should eql "Sous-total .... 10,00$\nTPS ........... 0,00$\nTVQ ........... 0,00$\nTotal ......... 10,00$" } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taxedo-0.0.6 | spec/taxedo_spec.rb |
taxedo-0.0.5 | spec/taxedo_spec.rb |
taxedo-0.0.4 | spec/taxedo_spec.rb |