shard-spectator/spec/spectator
Michael Miller 4dfa5ccb6e
Prevent defining stubs on undefined methods in LazyDouble
In Crystal 1.6, a segfault would occur in the spec spec/spectator/mocks/lazy_double_spec.cr:238
I suspect this is a Crystal bug of some kind, but can't reduce it.
The methods produced by `method_missing` don't have a return type including Symbol.
Symbol is excluded from the union of return types (Int32 | String | Nil).
The program segfaults when calling a method on the actual value, which is a symbol.
It ultimately crashes when producing a failure message, which indicates the value it tested doesn't equal the expected value (a symbol of the same value).
Avoid this issue by preventing stubs on undefined/untyped methods.
2022-10-08 14:04:02 -06:00
..
dsl/mocks Add count modifiers for have_received matcher 2022-07-14 20:46:52 -06:00
mocks Prevent defining stubs on undefined methods in LazyDouble 2022-10-08 14:04:02 -06: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