git clone [email protected]:javiergradiche/bowling.git
- ruby 2.6.5 (we recommend to use
rbenv
to install/manage different ruby versions) - bundler
gem install bundler #to install bundler
bundle install
ruby bowling.rb game FILE.txt
Integration tests added within the fixtures at
spec/game_spec.rb
Fixtures
- spec/fixtures/test.1player-all-0.txt
- spec/fixtures/test.1player-all-10.txt
- spec/fixtures/test.1player-all-F.txt
- spec/fixtures/test.1player-all-open.txt
- spec/fixtures/test.1player-video.txt
- spec/fixtures/test.game-example.txt
- spec/fixtures/test.jeff-game-example.txt
- spec/fixtures/test.fail-bad-input.txt
- spec/fixtures/test.fail-game-incomplete.txt
- spec/fixtures/test.fail-game-exceed.txt
bundle install
rspec
- Using
thor
gem to simplify the input validations for cli - Using
rspec
gem to manage tests