The goal of this Kata is to incrementally build up a functional deck of playing cards using Minitest and Ruby using a test driven approach and coming to our final solution via approximation.
This Kata can be performed in any version of Ruby, however Minitest is only in as of 1.9 and later, so I suggest you start there. I can see no reason today to use 1.8.
- Fork the repository and clone it to your system.
- Open
playing_cards.rb
in your favorite editor, which by now should be VIM. - Uncomment the first test.
- Write the passing implementation above the test code.
- Run the file using
ruby -rminitest/pride playing_cards.rb
- Your first test should pass.
- Uncomment the next test and repeat the process