Matchi::Rspec
Extend Matchi matchers with some RSpec’s ones.
Installation
Add this line to your application’s Gemfile:
“by gem “matchi-rspec”
“
And then execute:
$ bundle
Or install it yourself as:
$ gem install matchi-rspec
Usage
Identity matcher:
“by be = Matchi::Matcher::Be.new(42) be.matches? { 42 } # => true
“
Type/class matcher:
“by be_instance_of = Matchi::Matcher::BeInstanceOf.new(String) be_instance_of.matches? { “foo” } # => true
“
Equivalence matcher:
“by eq = Matchi::Matcher::Eq.new(“foo”) eq.matches? { “foo” } # => true
“
Contact
- Home page: https://github.com/fixrb/matchi-rspec
Versioning
Matchi::Rspec follows Semantic Versioning 2.0.
License
The gem is available as open source under the terms of the MIT License.
