branch: master commit c4e0b0b7383732d59ac09fb397c52b23fb531fe9 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy-test.el (ivy-read-file-name-make-directory): Add --- ivy-test.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ivy-test.el b/ivy-test.el index c217c23..10bf189 100644 --- a/ivy-test.el +++ b/ivy-test.el @@ -1001,6 +1001,16 @@ a buffer visiting a file." (equal (ivy-state-current ivy-last) "~/dummy-dir/dummy-file")) (ivy-mode ivy-mode-reset-arg))) +(ert-deftest ivy-read-file-name-make-directory () + (should + (equal + (ivy-with + '(read-file-name "Make directory: " default-directory default-directory + nil nil) + "C-M-j" + :dir "/tmp/non-existant-dir/") + "/tmp/non-existant-dir/"))) + (ert-deftest ivy-starts-with-dotslash () (should (ivy--starts-with-dotslash "./test1")) (should (ivy--starts-with-dotslash ".\\test2"))