Minitest::Rack

Ruby - Gem Version - Minitest Style Guide

Coverage: 100%

Minitest & rack-test convenience assertions/expectations for DRY'er faster testing.

Save time and energy by writing short effecient obvious assertions/expectations with Rack-test when using Minitest.


Installation

Add this line to your application's Gemfile:

gem 'minitest-rack'

And then execute:

bundle

Or install it yourself as:

gem install minitest-rack

Usage

Add the gem to your Gemfile or .gemspec file and then load the gem in your (test|spec)_helper.rb file as follows:

 # <snip...>

 require 'minitest/autorun'
 require 'minitest/rack'

 # <snip...>

Adding the above to your spec_helper.rb file automatically adds the key helper methods to the Minitest::Assertions to test for Rack output.


Requirements

Acknowledgements

Inspiration for this gem was taken from the rack-minitest gem by Brandon Weiss

Copyright (c) 2012 Brandon Weiss and released under the MIT license.


Development

After checking out the repo, run bundle install to install dependencies. Then, run bundle exec rake spec to run the tests.

To install this gem onto your local machine, run bundle exec rake install.

To release a new version:

  1. update the version number in version.rb
  2. run bundle exec rake release, which will create a git tag for the version
  3. push git commits and tags
  4. push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub.

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Copyright (c) 2015 - 2024 Kematzy

License

The gem is available as open source under the terms of the MIT License.