This event is now over

Event Details



This course will teach you how to test drive your Ruby code. The principles and techniques taught will, of course, be applicable in any other object oriented language.

Trainers: Sidu Ponnappa and Aakash Dhramadhikari


At the end of this course you should be able to:

  • Understand the advantages and disadvantages of TDD
  • Stop thinking of tests as tests and start using them as requirement specifications
  • Use tests for more than simply protecting against regression bugs
  • Take the first steps toward using tests as a tool to design better code
  • Create a pure Ruby project including directory structure and Rakefile
  • Create builds that will run your tests
  • Maintain that build over time and use it to track various metrics like coverage and cyclomatic complexity
  • Identify & understand various test smells, like complex test setup or excessive mocking, that indicates poor design
  • Use RSpec, the tool we'll be using for this course, effectively

Like all other workshops we conduct, this workshop is structured as a series of hands-on 30 minute exercises, each concentrating on a particular topic. The attendee will build a real, working Ruby gem over the course of the two day session.


Why not BDD instead of TDD?

We do understand that of late, BDD or behaviour driven development has become very popular in the Rails world. However, teaching test driven development in a two day course is a difficult enough matter already without adding the additional layer of tooling and, more importantly, philosophy that underlies BDD. Since BDD builds on the same basic principles as TDD, the material covered in this course will form an excellent foundation for further study of BDD.

Prerequisites: Working knowledge of Ruby, laptop with Linux/OSX and Ruby already installed

Timings: 9 AM to 6 PM

Includes: Lunch & two networking breaks

Trainers' profiles:

Sidu started working with Ruby and Rails in 2006 when he co-founded Activ Mobs (the core of which was a Rails application) with a friend. Since then he has done a bunch of Ruby and Rails work, both open-source as well as commercial, the latter as a Senior Consultant at ThoughtWorks. He is a committer on projects like Wrest and Goldberg and has contributed to the RSpec project.

He has also been involved in training in the past, and has done sessions covering object oriented programming, test driven development and agile philosophies.

He is a founder and moderator of the BangaloreRUG, one of the largest and most active Ruby lists in India. He also conceived and helped organised both DevCamp India as well as RubyConf India and has presented at RubyConf 2010 in New Orleans and will be speaking again this year at RubyConf 2011.

He writes occasionally, and his blog is one of approximately three hundred ruby related blogs indexed by Rubylicious.


Aakash moved to Ruby in late 2009 after working with Java for over 4 years. He is a co-founder of C42 Engineering, and has been working on commercial as well as open source Ruby and Rails project for the last 2 years. He is a committer on projects like Wrest and Goldberg.

He has been involved in designing & delivering trainings on a variety of technical topics. He has also presented at RubyConf '11 Bangalore.


Aakash Dharmadhikari


July 23, 2011 — 2:30 pm to
July 24, 2011 — 11:30 pm

Add to your calendar


No. 9, Drafadila Layout
4th Block, Koramangala
Bangalore, Karnataka