Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Using MiniTest

piglop edited this page Aug 13, 2010 · 14 revisions

You can also use MiniTest assert methods by defining your own World block:

require 'mini/test'

World do |world|
  world.extend(Mini::Test::Assertions)
  world
end

If it doesn’t work, try this one:

require 'minitest/unit'

World do
  extend Mini::Test::Assertions
end

Also see the minitest cheat cheet here

Clone this wiki locally