Skip to content
This repository

Provides a simple, readable API to express expected outcomes of a code example

tree: b43f107713

Fetching latest commit…

Cannot retrieve the latest commit at this time


RSpec Expectations

rspec-expectations adds should and should_not to every object and includes RSpec::Matchers, a library of standard matchers.


Matchers are objects used to compose expectations:

result.should eq("this value")

In that example, eq("this value") returns a Matcher object that compares the actual result to the expected "this value".



Also see

Something went wrong with that request. Please try again.