Run rspec in spec root if found
This commit is contained in:
parent
5169285be0
commit
f993466d81
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user