Posts Tagged “tdd”
An old gem that's been lying around untouched since 2010 got some refactoring love. Moving away from brutally monkey patching a core class, I used this case as an academic example to illustrate how to test refinements using Test::Unit, MiniTest::Spec and RSpec.
2013-10-06 Learning Ruby with Tests (Part 2)
The second part expands on the code created in round 1 and fleshes out the existing Vehicle class. It introduces a new test helper, instance variables, explains predicates and the overrides Vehicle's initialize method.