spec/taxedo/builder/json_spec.rb in taxedo-0.0.1 vs spec/taxedo/builder/json_spec.rb in taxedo-0.0.2
- old
+ new
@@ -2,14 +2,14 @@
describe Taxedo::Builder::Json do
#*************************************************************************************
# PUBLIC INSTANCE METHODS
#*************************************************************************************
- context "with a quebec receipt of 10,00$" do
- let(:receipt) { Taxedo::Region.new('quebec').calculate(1000) }
+ context "with a quebec receipt of 100$" do
+ let(:receipt) { Taxedo::Region.new('quebec').calculate(10000) }
describe "#generate" do
subject { Taxedo::Builder::Json.new(receipt).generate }
- it { should eql '{"subtotal":1000,"taxes":[{"id":"gst","name":"TPS","amount":50},{"id":"qst","name":"TVQ","amount":99}],"total":1149}' }
+ it { should eql '{"subtotal":10000,"taxes":[{"id":"gst","name":"TPS","amount":500},{"id":"qst","name":"TVQ","amount":998}],"total":11498}' }
end
end
end