Introduction to Test Driven Design (TDD)

Readme Homework


Furlong: a Miles to Kilometer Conversion

Simple Miles to KM conversion; in both RSpec and MiniTest

Your Assignment

Homework:

  • Add a furlong to km method
  • 1 furlong = 0.201168 kilometers

Show Notes

Recomendations:

  • If RSpec looks like your brain works, use it
  • Otherwise, use Minitest
  • Use what your team likes

Copyright: Jesse Wolgamott, MIT License (See LICENSE)

Introduction to Test Driven Design (TDD)

  • Area:

    Databases  
  • Runtime:

    22  
  • Tech:

    RSpec, MiniTest  
  • Tags:

    minitest rspec tdd  

Create a Miles to Kilometers calculator using test driven design (TDD). First, we use the RSpec syntax and cover both .should and expect().to syntaxes.

Then, we show the same process in MiniTest, and discover the two frameworks are not so different after all.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

ABOUT RUBY OFF RAILS

Ruby Off Rails is dedicated to accelerating the mastering of Ruby and increasing developer happiness everywhere.

In my software training, I see two distinct sets of programmers: those who know Ruby, and those who haven’t learned it yet. People who learn Ruby have an easier time understanding Rails, gems, and what magic voodoo is going on. And most importantly, they can cast wicked voodoo themselves.