waterlink / spec2.cr

Enhanced `spec` testing library for [Crystal](http://crystal-lang.org/).
MIT License
103 stars 22 forks source link

fix #32: Make after hooks run even if example failed #33

Closed waterlink closed 8 years ago

waterlink commented 8 years ago

This PR makes both after and delayed hooks run after the example, even if example has failed. This makes sense, if these hooks are used for cleanups. If they are used for some expectation, it is still OK, since the original exception, will still be raised.