Closed horkhe closed 12 years ago
This is awesome! Feature/API wise it looks really good, I'll review the code as soon as I have a bit more time.
I hope that won't take long :)
@eproxus so, do I need to fix something here?
Nope, I'll just wait for Travis CI to run the tests (or run them myself) and then I'll merge.
@eproxus If you go to the Meck page at Travis CI http://travis-ci.org/#!/eproxus/meck/pull_requests you will see that build passed. There is no a note in here about that though. Probably due to some glitch in GitHub/Travis integration.
Ah, I was fooled by looking for the name of the pull request rather than the last commit message. My bad. Merging now.
This pull requests suggests a new exception expectation syntax in the spirit of just merged to the develop args-filter feature.
It introduces a new
ret_spec()
constructionmeck:raise(Class, Reason)
that can be specified anywhere where aret_spec()
is expected. E.g:Moreover it is possible to specify
meck:raise
inside ofmeck:loop
andmeck:seq
specifications. E.g.:Technically
meck:seq
andmeck:loop
were turned into containers that can contain any validret_spec()
including themselves. That makes rather crazy expect specifications possible:But this is just a side-effect of the implementation that will probably never be used :)