Merge pull request #1020 from cldwalker/fix-new-tests

fix tests broken by change in error format
This commit is contained in:
Jean Niklas L'orange 2013-02-19 06:12:49 -08:00
commit ea90df22c9
2 changed files with 5 additions and 5 deletions

View file

@ -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")))))

View file

@ -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")))