Fork me on GitHub
#boot
<
2019-07-23
>
allentiak14:07:21

Thanks! I already read it ๐Ÿ™‚

allentiak14:07:48

I was looking for something a little bit more deep, with boot-specific hints ๐Ÿ™‚

nha14:07:08

Not sure what hints you are looking for? There is also https://github.com/danielsz/system-api-example

allentiak14:07:35

The one problem I have is with CIDER: it won't run my tests (running one test works OK, but running all tests complains that there are no "is" clauses -- something that is not true)

allentiak14:07:53

I have to do it manually from the terminal, with boot test

allentiak14:07:58

But thanks for your reply, @nha!

nha14:07:58

Like with cider-test-run-ns-tests for instance? It works for me on boot projects (I donโ€™t know if there is anything boot-specific here)

allentiak17:07:45

Yes. I used cider-test-run-ns-tests. Could it be because I added a let?

(deftest app-test
  (testing "ping endpoint"
    (let [expected-ping-response {:status  200
                                  :headers {"Content-Type" "text/plain; charset=UTF-8"}
                                  :body    "pong"}]
      (is (= expected-ping-response
             (handler (mock/request :get "/ping")))))))

nha09:07:49

That should not be an issue (but it very easy to test that hypothesis in any case)