Sha256: d28c2e8826821a518576fc5b7b9583ab9e3c481c3696140dfa11de0a2f8d9f54
Contents?: true
Size: 752 Bytes
Versions: 5
Compression:
Stored size: 752 Bytes
Contents
require 'spec_helper' describe Taxedo::Tax do #************************************************************************************* # PUBLIC INSTANCE METHODS #************************************************************************************* describe "#amount" do specify { Taxedo::Tax.new('gst').amount.should eql 0 } end let(:tax) { Taxedo::Tax.new('gst') } context "having a tax rate of 7% and a source amount of 100$" do before { tax.rate = 700 } before { tax.source_amount = 10000 } describe "#source_amount" do the("tax.amount") { should eql 700 } the("tax.source_amount") { should eql 10000 } end describe "#subtotal" do the("tax.subtotal") { should eql 10700 } end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
taxedo-0.0.6 | spec/taxedo/tax_spec.rb |
taxedo-0.0.5 | spec/taxedo/tax_spec.rb |
taxedo-0.0.4 | spec/taxedo/tax_spec.rb |
taxedo-0.0.3 | spec/taxedo/tax_spec.rb |
taxedo-0.0.2 | spec/taxedo/tax_spec.rb |