Add tests for last function I use
This commit is contained in:
parent
859d748069
commit
fdf4c9da84
1 changed files with 15 additions and 0 deletions
|
|
@ -40,4 +40,19 @@
|
|||
(file-missing
|
||||
(error-message-string err))))
|
||||
:to-equal "Setting current directory: No such file or directory, /usr/fake-project")))
|
||||
|
||||
(describe "counsel-projectile-find-file"
|
||||
(before-each
|
||||
(spy-on 'ivy-read)
|
||||
(spy-on 'projectile-project-root :and-return-value user-emacs-directory))
|
||||
|
||||
(it "finds a file"
|
||||
(counsel-projectile-find-file)
|
||||
(expect 'ivy-read :to-have-been-called-with
|
||||
"[29.1] Find file: " nil
|
||||
:matcher 'counsel-projectile--find-file-matcher
|
||||
:require-match t
|
||||
:sort nil
|
||||
:action counsel-projectile-find-file-action
|
||||
:caller 'counsel-projectile-find-file)))
|
||||
;;; test-counsel-projectile.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue