Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 521 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 521 Bytes

JobReady Sales Taxes Test

Usage

Ensure the Virtus Gem is installed (https://github.com/solnic/virtus)

$ gem install virtus

Print Receipt (Input: CSV file, Output: STDOUT)

$ ./register.rb test_input.csv

Testing

Run Specs

$ rspec

Notes

  • Virtus used to add ActiveModel like functionality to POROs. (Initialization from hash, Type coercion)
  • Due to time constraints, spec coverage is limited - Please see http://robj.github.io for a better example of TDD