class

Athena::Mercure::Spec::AssertingTokenFactory

Inherits Athena::Mercure::TokenFactory::Interface < Reference < Object

An AMC::TokenFactory::Interface implementation that will assert it was called with the expected arguments to #create.

Constructors

new(token : String, subscribe : Array(String) | Nil = [] of String, publish : Array(String) | Nil = [] of String, additional_claims : Hash(String, String) = {} of String => String)
Source

Instance methods

called?
Source
create(subscribe : Array(String) | Nil = [] of String, publish : Array(String) | Nil = [] of String, additional_claims : Hash | Nil = nil) : String
Source