shard-spectator/spec
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
..
docs Fix README spec 2022-12-17 21:01:22 -07:00
features Run smoke test for nightly 2022-05-25 17:20:57 -06:00
helpers Remove runtime compilation tests 2022-10-09 16:47:54 -06:00
issues Prevent comparing range arguments with non-compatible types in stubs 2022-12-18 11:35:43 -07:00
matchers Use shorter string when stub is treated as a message 2022-11-04 22:55:12 -06:00
rspec Use before instead of before_each (same for after) 2022-11-04 16:56:03 -06:00
spectator Support creating instances of mocked modules via class 2022-12-18 16:04:49 -07:00
spec_helper.cr Remove runtime compilation tests 2022-10-09 16:47:54 -06:00