-
Clone or export this repository:
git clone git://github.com/st23am/pubkata.git
Or, if you don't care about fetching updates later:
git clone --depth 1 git://github.com/st23am/pubkata.git
Of course, you can fork it on GitHub and use your own copy.
-
Get the local environment set:
bundle install
-
See if the specs will run (and all fail).
rspec spec
-
Go to the pub
-
Pick a Kata (from the
spec/
directory) -
Run the spec and pick the next failure:
rspec --fail-fast --format d spec/*kata_name*_spec.rb
It can help to define an alias to make this easier:
alias run='rspec --fail-fast --format d'
Then it's just something like:
run spec/fizz_buzz_spec.rb
-
Until no more failures:
-
Open the class from the
src/
directory with your favorite editor. -
Make it pass.
-
-
-
Go get a drink (HINT: doesn't have to be alcoholic)
-
Pick a new pub
-
GOTO 1