Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Multimock fails for spec'ed multimethods #8

Open
bsima opened this issue Jul 13, 2017 · 0 comments
Open

Multimock fails for spec'ed multimethods #8

bsima opened this issue Jul 13, 2017 · 0 comments

Comments

@bsima
Copy link
Contributor

bsima commented Jul 13, 2017

If a multimethod is spec'ed tih spec/fdef, then you get an error like:

java.lang.ClassCastException: clojure.spec.test.alpha$spec_checking_fn$fn__1352 cannot be cast to clojure.lang.MultiFn

The fix is probably to check if the multimethod we are mocking is spec'ed, and if so then figure out how to get the actual function instead of the spec_checking_fn

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant