shard-spectator/spec/spectator
Michael Miller fa99987780
Support creating instances of mocked modules via class
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.
2022-12-18 16:04:49 -07:00
..
dsl/mocks Support creating instances of mocked modules via class 2022-12-18 16:04:49 -07:00
mocks Support mocking modules 2022-12-18 15:18:20 -07:00
anything_spec.cr Change Anything to only use case equality 2021-02-09 21:18:20 -07:00
block_spec.cr Test value types 2021-02-09 22:50:21 -07:00
lazy_spec.cr Avoid using subject with structs 2021-02-13 17:33:52 -07:00
lazy_wrapper_spec.cr Test value types 2021-02-09 22:50:21 -07:00
system_exit_spec.cr Intercept most exit calls and raise instead 2022-07-12 23:02:20 -06:00
value_spec.cr Use cast as workaround 2021-02-13 11:44:51 -07:00
wrapper_spec.cr Use Box for Wrapper implementation 2022-03-19 22:53:50 -06:00