Skip to content

Commit

Permalink
Moves test migration dir to safe place.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd-dds committed Mar 10, 2016
1 parent dcd864b commit 9dbb111
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/waller/ragtime_test.clj
Expand Up @@ -28,19 +28,19 @@

(deftest loads-edns
(println "Loading edns")
(let [edns (load-resources "migrations")]
(let [edns (load-resources "migrationst")]
(is (= 2 (count edns)))))

(deftest integration-test
;; Makes sure that the database is returned to normal.
(let [c (db/drop ctx)]
(is (some #{(:code c)} '(200 404))))
(migrate-from-classpath {:url "arango://arangodb27:8529/waller"})
(migrate-from-classpath {:url "arango://arangodb27:8529/waller" :dir "migrationst"})
(let [c (col/get-all-collections (merge ctx {:exclude-system true}))
blog (:blog (:names c))
blog-indexes (tidx/read-all ctx "blog")
indexes (:indexes blog-indexes)]
(is (= 2 (count (:names c))))
(is (= 2 (count indexes)))
)
(migrate-from-classpath {:url "arango://arangodb27:8529/waller"}))
(migrate-from-classpath {:url "arango://arangodb27:8529/waller" :dir "migrationst"}))

0 comments on commit 9dbb111

Please sign in to comment.