Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lein test fails after lein new since template 3.37 #446

Open
rberger opened this issue Jul 14, 2019 · 2 comments
Open

lein test fails after lein new since template 3.37 #446

rberger opened this issue Jul 14, 2019 · 2 comments

Comments

@rberger
Copy link

rberger commented Jul 14, 2019

Looks like the change from starting with a component to starting with the function app has broken the default test at least with the command lein new luminus myapp +re-frame +h2 since template version 3.37 (it fails the same with from 3.37 to the current 3.41).

lein new luminus myapp +re-frame +h2
cd myapp
lein test

The test fails with

lein test :only myapp-3.37.test.handler/test-app

ERROR in (test-app) (AFn.java:429)
Uncaught exception, not in assertion.
expected: nil
  actual: clojure.lang.ArityException: Wrong number of args (1) passed to: myapp-3.37.handler/app
 at clojure.lang.AFn.throwArity (AFn.java:429)

If I revert the changes in src/clj/myapp/{handler.clj,core.clj} to not have app be a function, the test runs fine.

@yogthos
Copy link
Member

yogthos commented Jul 15, 2019

Thanks for the heads up. I've updated the tests to initialize the handler correctly, so the new version should work as expected. Let me know if it looks good on your end.

@duncan-bayne
Copy link
Contributor

FWIW I was experiencing this problem (hence discovering this issue :) ), but 3.42 fixes it for me.

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

No branches or pull requests

3 participants