SixArm » Ruby » Minitest extensions for assertions and expectations
Minitest extensions for our common cases:
Assert:
Spec:
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.
To install this gem in your shell or terminal:
gem install sixarm_ruby_minitest_extensions
To add this gem to your Gemfile:
gem 'sixarm_ruby_minitest_extensions'
To require the gem in your code:
require 'sixarm_ruby_minitest_extensions'
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