0.0
No commit activity in last 3 years
No release in over 3 years
Enough sugar for your Minitest diet
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 11.0
~> 0.39

Runtime

~> 5.0
 Project Readme

minitest-sugar Build Status

Useful helpers for Minitest 5+.

Installation

Add this line to your application's Gemfile:

gem "minitest-sugar"

And then execute:

$ bundle

Or install it yourself as:

$ gem install minitest-sugar

Usage

require "minitest/autorun"
require "minitest/sugar"

class TruthTest < Minitest::Test
  # Adds support for `setup` and `teardown` callbacks:
  setup do
    @truth = true
  end

  teardown do
    @truth = nil
  end

  # Define a test method using a String. Instead of
  # `def test_assert_the_truth`, do:
  test "assert the truth" do
    assert @truth
  end
end

Contributing

Fork the project with:

$ git clone git@github.com:frodsan/minitest-sugar.git

To install dependencies, use:

$ bundle install

To run the test suite, do:

$ rake test

For bug reports and pull requests use GitHub.

License

This gem is released under the MIT License.