Exception: RSpec::Expectations::ExpectationNotMetError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rspec/expectations.rb

Overview

Note:

We subclass Exception so that in a stub implementation if

Exception raised when an expectation fails.

the user sets an expectation, it can't be caught in their code by a bare rescue.

Direct Known Subclasses

MultipleExpectationsNotMetError