Ruby TDD and BDD Tutorials


Overview

These tutorials take you through TDD and BDD using Ruby, your favorite editor and the command line. You should be at least familiar with Ruby, but that really is not strictly necessary.

These tutorials are meant to be followed in order.

Setup




Test Drive Development using Test::Unit

Using TDD to Develop a Basic Algorithm
Print
Using TDD to Develop an RPN Calculator
TBD PRINT
Using TDD to Develop a Partial Monopoly Solution
TBD PRINT



Behavior Driven Development with RSpec

Using BDD to Develop a Basic Algorithm
Print
Using BDD to Develop an RPN Calculator
Print
Using BDD to Develop a Partial Monopoly Solution
TBD PRINT
Developing a Lost and Found System
TBD PRINT



Code Smells and Basic Refactoring




Final Problem