SHARE
TWEET

Untitled

a guest Feb 16th, 2013 31 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (fact "about homepage"
  2.   (-> (session app)
  3.       (request "/")   ;; {:response {:status 200}}
  4.       ;; how to assert that status is 200 in here?
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top