View difference between Paste ID: gKwhBEuP and BmnSvNLX
SHOW: | | - or go back to the newest paste.
1
(fact "about homepage"
2
  (-> (session app)
3
      (request "/")   ;; {:response {:status 200}}
4-
      ;; how to assert that status is 200?
4+
      ;; how to assert that status is 200 in here?
5-
  )
5+
  )
6
7
;; so that I don't have to use
8
9
10
(fact "about homepage"
11
  (let [app-state (-> (session app) (request "/"))]
12
    (-> app-state :response :status) => 200))