-
Notifications
You must be signed in to change notification settings - Fork 18
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
Tutorial issue #18
Comments
Hi thanks for noticing, that's a bug on my part. I recently changed the |
I'll close this one, but let me know if you find anything else. |
Thanks. All looks good now. |
Hi, |
Thanks for the heads up, I updated the example. |
Getting the same error as original poster, trying to change
Noob here, so please excuse any mistakes. I see that I have to set up a route for 500, but still... the test should pass, no? I am following the Web Dev book, although newest template. Could that be the culprit? |
It looks like a regression was introduced. Should be fixed in the latest template. Sorry for the trouble. |
It looks like the regression is still there, the correct examples are here. |
Work through whole tutorial on website and everything worked great expect that step for test.
Updated code to match that on website for test and got following error....
lein test guestbook.test.handler
lein test :only guestbook.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: handler/app
at clojure.lang.AFn.throwArity (AFn.java:429)
clojure.lang.AFn.invoke (AFn.java:32)
guestbook.test.handler$fn__16685$fn__16686.invoke (handler.clj:8)
guestbook.test.handler$fn__16685.invokeStatic (handler.clj:7)
guestbook.test.handler/fn (handler.clj:6)
clojure.test$test_var$fn__7983.invoke (test.clj:716)
clojure.test$test_var.invokeStatic (test.clj:716)
clojure.test$test_var.invoke (test.clj:707)
clojure.test$test_vars$fn__8005$fn__8010.invoke (test.clj:734)
clojure.test$default_fixture.invokeStatic (test.clj:686)
clojure.test$default_fixture.invoke (test.clj:682)
clojure.test$test_vars$fn__8005.invoke (test.clj:734)
clojure.test$default_fixture.invokeStatic (test.clj:686)
clojure.test$default_fixture.invoke (test.clj:682)
clojure.test$test_vars.invokeStatic (test.clj:730)
clojure.test$test_all_vars.invokeStatic (test.clj:736)
clojure.test$test_ns.invokeStatic (test.clj:757)
clojure.test$test_ns.invoke (test.clj:742)
clojure.core$map$fn__4785.invoke (core.clj:2646)
clojure.lang.LazySeq.sval (LazySeq.java:40)
clojure.lang.LazySeq.seq (LazySeq.java:49)
clojure.lang.Cons.next (Cons.java:39)
clojure.lang.RT.boundedLength (RT.java:1749)
clojure.lang.RestFn.applyTo (RestFn.java:130)
clojure.core$apply.invokeStatic (core.clj:648)
clojure.test$run_tests.invokeStatic (test.clj:767)
clojure.test$run_tests.doInvoke (test.clj:767)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invokeStatic (core.clj:646)
clojure.core$apply.invoke (core.clj:641)
user$eval16487$fn__16546$fn__16577.invoke (form-init1620404423580901960.clj:1)
user$eval16487$fn__16546$fn__16547.invoke (form-init1620404423580901960.clj:1)
user$eval16487$fn__16546.invoke (form-init1620404423580901960.clj:1)
user$eval16487.invokeStatic (form-init1620404423580901960.clj:1)
user$eval16487.invoke (form-init1620404423580901960.clj:1)
clojure.lang.Compiler.eval (Compiler.java:6927)
clojure.lang.Compiler.eval (Compiler.java:6917)
clojure.lang.Compiler.load (Compiler.java:7379)
clojure.lang.Compiler.loadFile (Compiler.java:7317)
clojure.main$load_script.invokeStatic (main.clj:275)
clojure.main$init_opt.invokeStatic (main.clj:277)
clojure.main$init_opt.invoke (main.clj:277)
clojure.main$initialize.invokeStatic (main.clj:308)
clojure.main$null_opt.invokeStatic (main.clj:342)
clojure.main$null_opt.invoke (main.clj:339)
clojure.main$main.invokeStatic (main.clj:421)
clojure.main$main.doInvoke (main.clj:384)
clojure.lang.RestFn.invoke (RestFn.java:421)
clojure.lang.Var.invoke (Var.java:383)
clojure.lang.AFn.applyToHelper (AFn.java:156)
clojure.lang.Var.applyTo (Var.java:700)
clojure.main.main (main.java:37)
The text was updated successfully, but these errors were encountered: