Sha256: 0d225f0ec0923918b6fe8865b64a1b358fd25a51b5c654aabbba72230011a3c1

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

require 'spec_helper'

describe Taxedo::Builder::Text do
  #*************************************************************************************
  # PUBLIC INSTANCE METHODS
  #*************************************************************************************
  context "with a quebec receipt of 100$" do
    let(:receipt) { Taxedo::Region.new('quebec').calculate(10000) }

    describe "#generate" do
      subject { Taxedo::Builder::Text.new(receipt).generate }
      it { should eql "Sous-total .... 100,00$\nTPS ...........  5,00$\nTVQ ...........  9,98$\nTotal ......... 114,98$"  }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
taxedo-0.0.6 spec/taxedo/builder/text_spec.rb
taxedo-0.0.5 spec/taxedo/builder/text_spec.rb
taxedo-0.0.4 spec/taxedo/builder/text_spec.rb
taxedo-0.0.3 spec/taxedo/builder/text_spec.rb
taxedo-0.0.2 spec/taxedo/builder/text_spec.rb