Sha256: 0b7b2475be507b364a9234e55bee3a4b5c040758cf43848a29c403bc8ba423b0
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
# MiniTest Should [![Build Status](https://secure.travis-ci.org/citrus/minitest_should.png)](http://travis-ci.org/citrus/minitest_should) minitest_should allows you to write unit tests with [shoulda](https://github.com/thoughtbot/shoulda) style syntax. Contexts are not fully supported but you can use `should "do something"` instead of those `pesky_underscored_test_names`. Usage ----- gem "minitest" require "minitest/autorun" require "minitest/should" # instead of this class TestWithUnderscores < MiniTest::Unit::TestCase def test_should_just_work assert true end def test_something_else_should_be_nothing @something = "nothing" assert_equal "nothing", @something end end # use this! class TestWithShould < MiniTest::Unit::TestCase should "just work" do assert true end context "Something else" do def setup @something = "nothing" end should "be nothing" do assert_equal "nothing", @something end end end Installation ------------ As usual, just use the `gem install` command: (sudo) gem install minitest_should Or add minitest_should as a gem in your Gemfile: gem 'minitest_should', '~> 0.2.0' Then run `bundle install` Testing ------- Testing is done with minitest. (duh!) Run the tests with: rake Changelog --------- **2011/12/8 - v0.2.0** - add contexts **2011/11/8 - v0.1.1** - ensure dynamic methods have safe names **2011/11/8 - v0.1.0** - it exists! License ------- Copyright (c) 2011 Spencer Steffen & Citrus, released under the New BSD License All rights reserved.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest_should-0.2.0 | README.md |