class

DriverSpecs::MockDriver

Inherits Reference < Object

Instance methods

[](key)

returns the current value of a status value and raises if it does not exist

Source
[]=(key, value)

Expose a status key to other mock drivers and the driver we're testing

Source
[]?(key)

returns the current value of a status value and nil if it does not exist

Source
logger

proxies Log so you can use the logger in the same way as drivers

Source
signal_status(key)

pushes a change notification for the key specified, even though it hasn't changed

Source
system(module_id : String | Symbol) : DriverSpecs::StatusHelper

Grab the status storage for a mock module

i.e. system("Module_2")

Source

Macros

status(klass, key)

reads a status key and deserialises the value into the class provided.

It raises if the class does not exist.

Source
status?(klass, key)

reads a status key and deserialises the value into the class provided.

It returns nil if the key doesn't exist

Source