spec/taxedo/region_spec.rb in taxedo-0.0.3 vs spec/taxedo/region_spec.rb in taxedo-0.0.4

- old
+ new

@@ -17,9 +17,13 @@ context "in July 1994" do let(:result) { region.calculate(10000, :on => Time.parse('1994-07-01')) } the("result.total") { should eql 11396 } end end + + context "when calculating taxes on 100$ with a rule that doesn't exists" do + it { expect { region.calculate(10000, :rule => 'unknown') }.to raise_error("TAXEDO: This tax rule doesn't exists!") } + end end context "with the can region" do let(:region) { Taxedo::Region.new('can') }