class

Mocks::UnexpectedMessage

Inherits Exception < Reference < Object

Exception raised when a method was called that wasn't allowed or expected.

Constructors

new(method_name : Symbol, message = "Unexpected method `#{method_name}` was called")
Source

Instance methods

method_name

Name of the method that was called.

Source