Merge pull request #1020 from cldwalker/fix-new-tests
fix tests broken by change in error format
This commit is contained in:
commit
ea90df22c9
2 changed files with 5 additions and 5 deletions
|
@ -48,7 +48,7 @@
|
|||
|
||||
(deftest test-new-with-nonexistent-template
|
||||
(is (re-find
|
||||
#"^Could not find template zzz"
|
||||
#"ERROR: Could not find template zzz"
|
||||
(with-redefs [leiningen.new/resolve-remote-template (constantly false)]
|
||||
(abort-msg leiningen.new/new nil "zzz" "my-zzz")))))
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
(is (= (name-to-path "foo-bar.baz") "foo_bar/baz")))
|
||||
|
||||
(deftest renderers
|
||||
(is (= (abort-msg (renderer "my-template") "boom" {})
|
||||
"Template resource 'leiningen/new/my_template/boom' not found.\n"))
|
||||
(is (= (abort-msg (renderer "my-template") "boom")
|
||||
"Template resource 'leiningen/new/my_template/boom' not found.\n")))
|
||||
(is (.contains (abort-msg (renderer "my-template") "boom" {})
|
||||
"ERROR: Template resource 'leiningen/new/my_template/boom' not found.\n"))
|
||||
(is (.contains (abort-msg (renderer "my-template") "boom")
|
||||
"ERROR: Template resource 'leiningen/new/my_template/boom' not found.\n")))
|
Loading…
Reference in a new issue