shard-spectator/spec
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
..
docs Add spec for custom matchers docs 2022-09-03 16:46:17 -06:00
features Run smoke test for nightly 2022-05-25 17:20:57 -06:00
helpers Spelling 2022-01-10 21:10:36 -07:00
issues Fix https://gitlab.com/arctic-fox/spectator/-/issues/77 2022-08-07 14:58:09 -06:00
matchers Add count modifiers for have_received matcher 2022-07-14 20:46:52 -06:00
rspec Adjust evaluation order of change matcher expressions 2022-05-14 23:30:15 -06:00
spectator Prevent defining stubs on undefined methods in LazyDouble 2022-10-08 14:04:02 -06:00
runtime_example_spec.cr Mark slow compilation tests 2021-08-18 15:57:39 -06:00
spec_helper.cr Initial work on Double 2022-03-03 22:10:09 -07:00