Created
March 3, 2015 18:47
-
-
Save anonymous/b072e75c3a3453723a5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns hndrx-tests.dialogue-tests | |
(:require [clojure.test :refer :all] | |
[hndrx-tests.core :refer :all])) | |
(use 'clj-webdriver.taxi) | |
(def BASE-URL "http://127.0.0.1:8000") | |
(defn each-fixture [f] | |
(let [driver1 (new-driver {:browser :chrome}) | |
driver2 (new-driver {:browser :chrome})] | |
(to driver1 BASE-URL) | |
(to driver2 BASE-URL) | |
(f driver1 driver2) | |
(quit driver1) | |
(quit driver2))) | |
(deftest math | |
(is (= 4 (+ 2 2)))) | |
(use-fixtures :each each-fixture) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment