SixArm.com » Ruby »
Minitest Extensions
- Doc: http://sixarm.com/sixarm_ruby_minitest_extensions/doc
- Gem: http://rubygems.org/gems/sixarm_ruby_minitest_extensions
- Repo: http://github.com/sixarm/sixarm_ruby_minitest_extensions
- Email: Joel Parker Henderson, [email protected]
Introduction
Minitest extensions for our common cases:
Assert:
- assert_true
- assert_false
- assert_respond_to_all
- assert_equal_items
Spec:
- must_be_true
- must_be_false
- must_respond_to_all
- must_have_equal_items
Based on Minitest.
For docs go to http://sixarm.com/sixarm_ruby_minitest_extensions/doc
Want to help? We're happy to get pull requests.
Install quickstart
Install:
gem install sixarm_ruby_minitest_extensions
Bundler:
gem "sixarm_ruby_minitest_extensions", "~>1.0.3"
Require:
require "sixarm_ruby_minitest_extensions"
Install with security (optional)
To enable high security for all our gems:
wget http://sixarm.com/sixarm.pem
gem cert --add sixarm.pem
gem sources --add http://sixarm.com
To install with high security:
gem install sixarm_ruby_minitest_extensions --test --trust-policy HighSecurity
Examples
Example Minitest spec:
describe Foo do
it "validates" do
f = Foo.new
f.valid?.must_be_true
end
end
Example Minitest spec:
describe Foo do
it "is colorful" do
f = Foo.new
f.must_respond_to_all [:red, :green, :blue]
end
end
Changes
- 2013-07-27 1.0.4 Add #assert_exist and #must_exist
- 2013-07-26 1.0.3 Add #assert_equal_items and #must_have_equal_items
- 2013-06-04 1.0.2 Update to enable "Minitest" vs. "MiniTest"
- 2013-06-03 1.0.1 Update for Minitest 5.x
- 2013-06-02 1.0.0 Publish
License
You may choose any of these open source licenses:
- Apache License
- BSD License
- CreativeCommons License, Non-commercial Share Alike
- GNU General Public License Version 2 (GPL 2)
- GNU Lesser General Public License (LGPL)
- MIT License
- Perl Artistic License
- Ruby License
The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement.
In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
This license is for the included software that is created by SixArm; some of the included software may have its own licenses, copyrights, authors, etc. and these do take precedence over the SixArm license.
Copyright (c) 2005-2013 Joel Parker Henderson