Run rspec in spec root if found

This commit is contained in:
Jeremy Dormitzer 2024-06-06 09:50:08 -04:00
parent 5169285be0
commit f993466d81

View File

@ -432,7 +432,9 @@
(save-excursion
(goto-char (point-min))
(re-search-forward "RSpec" nil t)))
(let ((root-dir (or (projectile-project-root) default-directory)))
(let ((root-dir (or (locate-dominating-file default-directory "spec")
(projectile-project-root)
default-directory)))
(-concat
(list
(list :command-name "test this file"