Minitest

Back to Web-Dev

Synopsis

For testing some class Meme, create a class TestMeme < Minitest::Test with functions:

def setup
    @meme = Meme.new
  end

  def test_that_kitty_can_eat
    assert_equal "OHAI!", @meme.i_can_has_cheezburger?
  end

to run, ruby -Ilib:test test/minitest/test_minitest_test.rb

Mocha

A ruby library for mocking and stubbing with builtin support for Minitest.