kanwei / algorithms

Ruby algorithms and data structures. C extensions
http://kanwei.github.io/algorithms/
MIT License
2.67k stars 352 forks source link

Expect explicit errors with raise_error in specs #39

Closed bannable closed 3 years ago

bannable commented 6 years ago

Using raise_error without an explicit error can result in false positive passes if the method under test raises any error, not just the that is interesting to the spec.