Yes. Cloverage needs to merge https://github.com/lshift/cloverage/pull/59
-- in the meantime, you can add
https://github.com/MichaelBlume/cloverage-compojure-fix to your project and
it will route around the problem.

On Tue, Apr 7, 2015 at 11:27 AM Jonathon McKitrick <jmckitr...@gmail.com>
wrote:

> 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 clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to