about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorMorgan Astra <m@morganastra.me>2018-11-14 12:49:17 -0800
committerMorgan Astra <m@morganastra.me>2018-11-14 12:49:17 -0800
commit4321ec5e39bdb817fbcc61cc40a42b5a23a0a1ce (patch)
tree44ae24233d2d010047c1ffd9b9049b2a06acbf76 /test
parent05a2d8fcff181a09ca7f79ad7590dab24575ab0d (diff)
Update deps to modern versions and remove midje
Diffstat (limited to 'test')
-rw-r--r--test/pronouns/pages_test.clj16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/pronouns/pages_test.clj b/test/pronouns/pages_test.clj
index 04c14ce..e32a2ee 100644
--- a/test/pronouns/pages_test.clj
+++ b/test/pronouns/pages_test.clj
@@ -1,10 +1,12 @@
 (ns pronouns.pages-test
   (:require [pronouns.pages :as pages]
-            [midje.sweet :refer :all]))
+            [clojure.test :refer [deftest testing is are]]))
 
-(fact "prose-comma-list turns a list of strings into a prose list with commas"
-      (pages/prose-comma-list ["foo"]) => "foo"
-      (pages/prose-comma-list ["foo" "bar"]) => "foo and bar"
-      (pages/prose-comma-list ["foo" "bar" "baz"]) => "foo, bar, and baz"
-      (pages/prose-comma-list ["foo" "bar" "baz" "bobble"]) => "foo, bar, baz, and bobble"
-      (pages/prose-comma-list []) => "")
+(deftest prose-comma-list
+  (testing "prose-comma-list turns a list of strings into a prose list"
+    (are [call result] (= call result)
+      (pages/prose-comma-list ["foo"]) "foo"
+      (pages/prose-comma-list ["foo" "bar"]) "foo and bar"
+      (pages/prose-comma-list ["foo" "bar" "baz"]) "foo, bar, and baz"
+      (pages/prose-comma-list ["foo" "bar" "baz" "bobble"]) "foo, bar, baz, and bobble"
+      (pages/prose-comma-list []) "")))