Posts Tagged “tdd”
2016-05-20 Migrating a legacy gem to use Ruby Refinements
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.
2013-09-02 Learning Ruby with Tests (Part 1)
The first part covers a very basic class and a simple, home-made test framework, that actually doesn't deserve the name 'framework' at this stage, yet.