So many Expectations...
Expectations are the heart of RSpec
The main rule is to only have one expectation to each example and the reason for this is that the test suite will stop running if the first expectation fails. If you only have one expectation for every example then the test suites will run independently.

Some more examples

eq
,
match
,
be
and
match_array
are the verbs that we have provided and they
are
the matchers.
The matchers are used as arguments to the .to
keywords.
Last updated