Initial commit
Basic setup - adding gems, guard, rspec
Add application configuration file

- Add to spec_helper
- Reduce complexity
Add feature helper

- Using Capybara to do the front-end testing
- Capybara refers to these tests as ‘features’
First feature - Main (index) page

- Display the application description on index page
Run with Rackup
Add an image for the application

- set public & static configuration options so the image is rendered by
  modular Sinatra App
Extend Capybara with nice #has_image? method

- credit: http://lostechies.com/derickbailey/2011/09/27/adding-a-has_image-matcher-to-capybara/
- use: have_image(<src>)
Extend #has_image? matcher

- include matching of ‘alt’ when present
- both src & ing must be true to return true
Update with test details

- use Github Flavoured Markdown
- leave out contact details *
- what employer is looking for *

* in an attempt at maintaining anonymity
Add images of relevant coins

- No images for 10 pence or 5 pence coins as not
  part of specification
Allow user to request ‘minimum no. of coins for issue’

- create form for user input (ask for ‘Enter amount in pennies’)
- create POST route ‘/calculate’
- respond with ‘results’ page
- tabulate results (basic table)
Refactor index and layout pages

- put common items (image and h1) in layout
Add coin class

- responsible for calculations of minimum no. coins to return
- add #calculate_minimum_coins (primary entry point)
Add files to control ruby version to use

- needed as means “£” accepted
- prevents \U+FFC2\U+FFA3 in rib (for development)
- negates use of # encoding: utf-8 in file
Make ‘single digit’ test pass

- Rename #calculate_mimimum_coins to #return_mimimum_coins
  as semantically more appropriate & original method name can be reused
  in more appropriate method
Add additional test for single digit (9 pence)
Add test for double digit (85)

- Add constant DENOMINATIONS_IN_PENCE as hash of coin name & amount in pence
- Refactor #calculate_minimum_coins to use constant
- Add #coin to add the number of coins for a denomination to the @uk_coins instance variable
Add test for pence symbol (197p)
Add test for pence symbol single digit (2p)