-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from kepler16/jv/change-ypwwlysorwvu
Add native-image compat to ns loader
- Loading branch information
Showing
4 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(ns k16.mallard.loaders.ns-test | ||
(:require | ||
[clojure.test :refer [deftest is testing]] | ||
[k16.mallard.loaders.ns :as loaders.ns] | ||
[matcher-combinators.test])) | ||
|
||
(deftest ns-loader-test | ||
(testing "It should load migrations from a given collection of namespaces" | ||
(let [migrations (loaders.ns/load! '(fixtures.migrations.1-migration | ||
fixtures.migrations.2-migration))] | ||
(is (match? [{:id "1-migration" | ||
:run-up! (requiring-resolve 'fixtures.migrations.1-migration/run-up!) | ||
:run-down! (requiring-resolve 'fixtures.migrations.1-migration/run-down!)} | ||
{:id "2-migration" | ||
:run-up! (requiring-resolve 'fixtures.migrations.2-migration/run-up!) | ||
:run-down! (requiring-resolve 'fixtures.migrations.2-migration/run-down!)}] | ||
migrations))))) |