slagyr / speclj

pronounced "speckle": a TDD/BDD framework for Clojure.
MIT License
458 stars 58 forks source link

with-stubs doesn't work across threads #115

Closed HeyBillFinn closed 9 years ago

HeyBillFinn commented 9 years ago

When testing a REST web server, I found that with-stubs was throwing an exception when a stub function was being invoked in a thread outside of the running it block. I updated with-stubs to use with-redefs, which has fixed this problem. Pull request submitted:

https://github.com/slagyr/speclj/pull/114

slagyr commented 9 years ago

Looks like this was already merged. Closing.