slagyr / speclj

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

Ring auto-reload: Unable to resolve var: speclj.stub/*stubbed-invocations* in this context #145

Open jonaspeter opened 9 years ago

jonaspeter commented 9 years ago

I'm using speclj to write tests for my web project and it's great. When I'm working on the style of my site I use the ring auto-reload feature to see changes immediately. Everytime ring tries to reload automatically I get the following error:

Caused by: java.lang.RuntimeException: Unable to resolve var: speclj.stub/stubbed-invocations in this context

The error message points to a line containing (with-stubs) Running the tests using lein spec works fine.

Please let my know if you need additional info.

tomphp commented 8 years ago

I'm getting the same behaviour when using clojure.tools.namespace.repl/refresh in the repl.