Here's a test in question:
(deftest reports
(testing "PDF schedule"
(testing "by api call"
(let [req (request :get "/schedule.pdf")]
(mocking
[pts.reports/get-schedule-pdf]
(app req) ;<---- line 1035
(verify-call-times-for pts.reports/get-schedule-pdf 1))))))
The tests pass, but when run with lein-cloverage, I get this error.
ERROR in (reports) (core_deftype.clj:544)
Uncaught exception, not in assertion.
expected: nil
actual: java.lang.IllegalArgumentException: No implementation of method:
:route-matches of protocol: #'clout.core/Route found for class:
clojure.lang.PersistentArrayMap
at clojure.core$_cache_protocol_fn.invoke (core_deftype.clj:544)
clout.core$eval15857$fn__15858$G__15848__15865.invoke (core.clj:39)
compojure.core$if_context$fn__16124.invoke (core.clj:188)
compojure.core$routing$fn__16062.invoke (core.clj:127)
clojure.core$some.invoke (core.clj:2515)
compojure.core$routing.doInvoke (core.clj:127)
clojure.lang.RestFn.applyTo (RestFn.java:139)
clojure.core$apply.invoke (core.clj:626)
compojure.core$routes$fn__16066.invoke (core.clj:132)
pts.server_test$fn__28317$fn__28318$fn__28319.invoke
(server_test.clj:1035)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.