Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.48 KB

README.md

File metadata and controls

62 lines (39 loc) · 1.48 KB

Minitest::GreatExpectations Build Status

Adds several generally helpful assertions to minitest and minitest-spec that you might be used to having, especially if you're coming from rspec:

[1, 2, 3].must_equal_contents [3, 2, 1]
{:a => 1, :b => 2}.must_equal_hash {:b => 2, :a => 1}
[1, 2, 3].must_include_all [1, 2]
something.works?.should_be_true

These may make it into minitest proper, someday.

Installation

Add this line to your application's Gemfile (in your "test" gem group, if you have one):

gem 'minitest-great_expectations'

Add this to your minitest_helper.rb:

require 'minitest/great_expectations'

And then execute:

$ bundle

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Changelog

0.0.5

  • Explicitly added MIT licensing to the gemspec.

0.0.4

  • Added assert_equal_hash/must_equal_hash
  • Reordered error messages to be more consistent with must_equal/assert_equal

0.0.3

  • Added assert_includes_none/wont_include_any

0.0.2

  • Added proper require, and moved into correct subdirectories

0.0.1

  • First whack