Georgy Angelov
|
f24985c23c
|
Add rspec matchers for Maybe and (Strict)?Equals
`expect(a).to eq_just b` <=> `a.IsJust && a.FromJust == b`
`expect(a).to be_successful` <=> `a.IsJust && a.FromJust`
`expect(a).to strict_eq b` <=> if a is Maybe: `a.IsJust && a.FromJust.StrictEquals(b)`; else `a.StrictEquals(b)`
`expect(a).to v8_eq b` <=> same as above but for `Equals` instead of `StrictEquals`
|
2015-08-01 20:21:36 +00:00 |
|