Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkqk/bill_calculator
https://github.com/pkqk/bill_calculator
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pkqk/bill_calculator
- Owner: pkqk
- Created: 2016-03-31T15:41:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-31T15:41:22.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T13:31:21.259Z (3 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Bill Calculator
===============At Cake, we like to have team dinners. After having lots of fun and wanting to go somewhere else
having even more, we hate having to calculate how much each one have to pay.Having this as a background, we started implemented a mini-calculator.
A bill contains subtotal (the sum of the items' prices), and might or might not include service
charge and discount.Because we are really bad at maths, from those amounts, we would like our calculator to tell us how much each of us has to pay.
We started something here, but we would like you to complete a few exercises:
1. Complete the writing of the `bill_spec.rb` tests. This includes the implementation of the
`Bill#split_by` method.2. Complete the writing of the `bill_decorator_spec.rb` tests. This includes the implementation of
the `BillDecorator#split_by` and `BillDecorator#total` methods.Dependencies
------------
* Ruby 2.2.3
* Bundler