O'Reilly logo

Rails 4 Test Prescriptions by Noel Rappin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9Minitest

Some people like the classics.

Some people don’t like RSpec’s syntax or its metaprogramming.

Some people use Minitest.

Minitest is the standard testing framework in the Ruby 2.0 Standard Library. It is also the default test framework for Rails.

Minitest’s design is based on a structure that was originally created by Kent Beck for the SUnit framework in Smalltalk and popularized by Beck and Erich Gamma in JUnit for Java. In Ruby this design was originally implemented in the Test::Unit framework, which Minitest supplanted. Minitest is cleaner and easier to extend; it uses traditional testing terms like “test” and “assert” and defines individual tests as actual Ruby methods. (Although we will be using a Rails add-on that lets ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required