A template for Ruby coding exercises.
The template comes configured with:
Getting started
- Ensure you have Ruby installed
- Ensure you have Bundler installed, if you don't then run:
gem install bundler
- Clone the project
- cd into the cloned project
- Run:
bundle install
which will install the RSpec and Mocha gems - On the command line run
rspec
inside the parent directory. If all goes well the one spec should pass.
Create new test specifications (specs)
- Spec files should be placed in
spec/lib
- Lib files should be placed in
lib