Skip to main content

Simple Testing in Ruby Using Minitest

By Darren Jones

Ruby

Share:

😳 Ever felt a little embarassed sharing your JavaScript? Let's fix it.

Writing tests for your app is kind of like ensuring that your car brakes will still work, even if you accidentally change the language of your sat-nav to German. Really, it’s about avoiding nasty surprises. Today, I’m going to show you how to write tests in Ruby using MiniTest. Enjoy!

Daz has been programming and building websites since the start of the millennium. He enjoys using Ruby and JavaScript and loves them both in their own special ways. He is the author of JavaScript: Novice to Ninja and Jump Start Sinatra. He also produced the 'Getting Started With Ruby' video tutorials for SitePoint and has written a number articles for SitePoint’s website. He was born in the city of Manchester and still lives there, where he teaches mathematics and enjoys playing water polo.

New books out now!

💁‍♀️ Fun Fact: Python was ranked #2 on a recent highest paid coders list. *


🤓 Ok. When did a code editor from Microsoft become kinda cool!?