(ns jiksnu.helpers.response
  (:require [jiksnu.helpers.actions :refer [current-page check-response]]
            [midje.sweet :refer :all]))

(defn response-should-be-redirect
  []
  (check-response
   (:status @current-page) => #(<= 300 %)
   (:status @current-page) => #(> 400 %)))

(defn response-should-be-sucsessful
  []
  (check-response
   (:status @current-page) => 200))

(ns jiksnu.helpers.response
  (:require [jiksnu.helpers.actions :refer [current-page check-response]]
            [midje.sweet :refer :all]))

(defn response-should-be-redirect
  []
  (check-response
   (:status @current-page) => #(<= 300 %)
   (:status @current-page) => #(> 400 %)))

(defn response-should-be-sucsessful
  []
  (check-response
   (:status @current-page) => 200))
