mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
This is a bit of a hack. The `.new` method is added to the module, which creates an instance that includes the mocked module. No changes to the def_mock and new_mock methods are necessary. For some reason, infinite recursion occurs when calling `.new` on the class. To get around the issue for now, the internal method of allocation is used. That is, allocate + initialize. |
||
---|---|---|
.. | ||
dsl/mocks | ||
mocks | ||
anything_spec.cr | ||
block_spec.cr | ||
lazy_spec.cr | ||
lazy_wrapper_spec.cr | ||
system_exit_spec.cr | ||
value_spec.cr | ||
wrapper_spec.cr |