I had conducted a session on test driven, behaviour driven development on Saturday, August 20, 2011 at Pune Institute of Computer Technology, Pune, Maharashtra, India using Ruby, Cucumber, and Rails with examples from Diaspora.

Thanks to Praveen Arimbrathodiyil for initiating this workshop and Shreyank Gupta for helping the students during the hands-on session.

Participants were new to Ruby, and we started off with Ruby in Twenty Minutes. Using interactive ruby (irb) students were able to understand the language syntax and its usage. We then moved on to writing tests in Ruby, and writing them first before writing code.

irc session

User stories were introduced with explanation on understanding how features, and step definitions are written. Cucumber was used to run through the features with simple examples. We then moved on to using cucumber with Rails illustrating an example of a Rails blog application. I had setup Diaspora on my laptop, and had then given them a visual demo of how cucumber runs feature tests with selenium webdriver. Photos taken from Shreyank’s camera are available.