class Spectator::Mocks::UnexpectedMessage

Overview

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

Defined in:

spectator/mocks/unexpected_message.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def method_name : Symbol #

Name of the method that was called.


[View source]