module Spectator::Mocks::Mock

Defined in:

spectator/mocks/mock.cr

Macro Summary

Macro Detail

macro def_define_mock(name) #

Defines a macro to define a mock. This is a workaround for the DSL methods regarding visibility modifiers. A type defined by a nested macro loses its visibility modifier from the outer macro invocation. This is probably a bug in the compiler, but working around for now. The workaround is to reuse the macro definition code here and in the DSL.


[View source]
macro define(type, **stubs, &block) #

[View source]