Ensure jdbc-test can be run standalone
This commit is contained in:
parent
1fd8fa22bb
commit
8d7f1b54da
1 changed files with 3 additions and 1 deletions
|
|
@ -2,13 +2,15 @@
|
||||||
|
|
||||||
(ns next.jdbc-test
|
(ns next.jdbc-test
|
||||||
"Not exactly a test suite -- more a series of examples."
|
"Not exactly a test suite -- more a series of examples."
|
||||||
(:require [clojure.test :refer [deftest is testing]]
|
(:require [clojure.test :refer [deftest is testing use-fixtures]]
|
||||||
[next.jdbc :as jdbc]
|
[next.jdbc :as jdbc]
|
||||||
[next.jdbc.test-fixtures :refer [with-test-db ds]]
|
[next.jdbc.test-fixtures :refer [with-test-db ds]]
|
||||||
[next.jdbc.prepare :as prep]
|
[next.jdbc.prepare :as prep]
|
||||||
[next.jdbc.result-set :as rs])
|
[next.jdbc.result-set :as rs])
|
||||||
(:import (java.sql ResultSet ResultSetMetaData)))
|
(:import (java.sql ResultSet ResultSetMetaData)))
|
||||||
|
|
||||||
|
(use-fixtures :once with-test-db)
|
||||||
|
|
||||||
(deftest basic-tests
|
(deftest basic-tests
|
||||||
(testing "reducible!"
|
(testing "reducible!"
|
||||||
(is (= "Apple"
|
(is (= "Apple"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue