Skip to content

Commit

Permalink
Fix a broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Sep 21, 2016
1 parent 43d5c2a commit ddc77c2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/projectile-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,8 @@

(ert-deftest projectile-add-unignored-files-no-vcs ()
(noflet ((projectile-project-vcs () 'none))
;; Fail when no VCS command for ignored files is found
;; on an unsupported VCS we simply return the list of globally unignored files
(let ((projectile-globally-unignored-files '("unignored-file")))
(should-error (projectile-add-unignored '("file"))))
;; But only fail if unignored files are requested
(let (projectile-globally-unignored-files)
(should (equal (projectile-add-unignored '("file")) '("file"))))))

(ert-deftest projectile-add-unignored-directories ()
Expand Down Expand Up @@ -608,7 +605,7 @@
"include2/test1.service.spec.js"
"include1/test2.js"
"include2/test2.js")))

(should (equal '("include1/test1.h" "include2/test1.h")
(projectile-get-other-files "src/test1.c" source-tree)))
(should (equal '("include1/test1.h" "include2/test1.h" "include1/test1.hpp")
Expand Down

0 comments on commit ddc77c2

Please sign in to comment.