Rspice

A dash of custom matchers, a pinch of shared contexts, and shared examples (to taste) for RSpec

Gem Version Build Status Maintainability Test Coverage

Installation

Add this line to your application's Gemfile:

gem "rspice"

And then execute:

$ bundle

Or install it yourself as:

$ gem install rspice

Usage

To include the RSpice tools add the following to your rails_helper.rb:

require 'rspice'

Custom Matchers

Shared Context

Shared Examples

Development

See Spicerack development instructions here.

To add a new example, context or matcher, add a new file to the appropriate directory in lib/rspice. Next, require the added file in its respective include file (such as lib/rspice/custom_matchers.rb).

Contributing

See Spicerack contribution instructions here.

License

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