(ns circle.util.test-airbrake
  (:use circle.airbrake)
  (:use midje.sweet))

(def div-by-zero (try (/ 1 0) (catch Exception e e)))

(fact "airbrake works"
  (circle.airbrake/airbrake :exception div-by-zero) => (contains {:id integer? :error-id integer? :url string?})
    (provided
      (circle.env/env) => :production))

(ns circle.util.test-airbrake
  (:use circle.airbrake)
  (:use midje.sweet))

(def div-by-zero (try (/ 1 0) (catch Exception e e)))

(fact "airbrake works"
  (airbrake :exception div-by-zero :force true) => (contains {:id integer? :error-id integer? :url string?}))

Use :force true instead of production so that the airbrake appears in the right category on the website, and won't bother us.
Use :force true instead of production so that the airbrake appears in the right category on the website, and won't bother us.

circleci/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,prathamesh-sonpatki/frontend