Permalink
Browse files

Fix edn migration test

  • Loading branch information...
swlkr committed Feb 10, 2019
1 parent 1a240e8 commit 02abf15e713c86397821c31f049f7240e651e404
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/coast/migrations/edn_test.clj
@@ -4,6 +4,5 @@

(deftest migrate
(testing "migrate with user table"
(with-redefs [migrations.edn/content (fn [s] [{:db/ident :user/name :db/type "text"}])]
(is (thrown-with-msg? Exception #"user is a reserved word in postgres try a different name for this table"
(migrations.edn/migrate ""))))))
(is (thrown-with-msg? Exception #"user is a reserved word in postgres try a different name for this table"
(migrations.edn/migrate [{:db/ident :user/name :db/type "text"}])))))

0 comments on commit 02abf15

Please sign in to comment.