mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
fa99987780
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. |
||
---|---|---|
.. | ||
allow_receive_spec.cr | ||
double_spec.cr | ||
expect_receive_spec.cr | ||
have_received_spec.cr | ||
lazy_double_spec.cr | ||
mock_spec.cr | ||
null_double_spec.cr | ||
stub_spec.cr |