class

KemalIdentity::Testing::RecordingNotifier

Inherits KemalIdentity::Accounts::Notifier < Reference < Object

Captures notifications instead of sending them.

Instant by design, which matters for more than speed: Notifier#deliver is contractually required to return promptly, because Accounts::Service#request_password_reset must take the same time whether or not the address exists. A double that slept would make the enumeration-timing spec measure the double rather than the service.

Constructors

Instance methods

clear
Source
confirmations
Source
deliver(notification : KemalIdentity::Accounts::Notification) : Nil
Source
delivered
Source
last_confirmation_token
Source
last_reset_token

The raw token from the most recent reset link, as a subscriber would extract it to build a URL.

Source
password_changes
Source
replays
Source
resets
Source