Skip to content

Limited, extended fork of Sandi Metz' 99 bottles exercise

Notifications You must be signed in to change notification settings

gareth/99bottles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

99 Bottles

This repo is an adapted version of the exercise from Sandi Metz' book "99 Bottles of OOP"

The aim is to TDD a class that can output the lyrics to the song "99 bottles", but the process of TDDing the solution can then be explored to understand some core OOP concepts.

In this example, the tests that will drive the class are already written for you.

Instructions

Clone the repo into a local folder, and run

$ bundle install

to ensure the dependencies are available.

Then, start running the tests in a terminal window with the following command.

$ guard -c

Guard will watch the lib/bottles.rb file for changes, and rerun the tests every time the file is updated.

Although a test suite is already written for you, the repo patches Minitest so that only the next test you have to worry about will be run. Use the test output to inform what code you write next.

About

Limited, extended fork of Sandi Metz' 99 bottles exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages