How to begin with a test driven ruby project

I am learning ruby now since the past fortnight, and have learnt a lot. I began with ruby koans and random questions on Stackoverflow. But soon, time had come for me to start solving coding problems. And I could just open a text-editor and start coding. But that is not how I was told to do it.

The way I was told to approach the problem, is to first create a workspace, that conform to (unsaid?) ruby coding practices. Creating a particular folder structure, placing the files in the appropriate folders and what not. Then initiate a git repo so I can collaborate if necessary.

As with all things ruby, there is an easy way to do it.


Ruby Koans

I was told to practice the Ruby Koans and I was following the Red Green methodology for most part. Then, somewhere around halfway through the course, I was asked to solve a problem. I just performed my first (that I can recall) Red-Green-Refactor here. It was awesome. And as Jim Weirich said in a recent RubyConf talk, a green test is something to celebrate 🙂