Skip to content

Commit

Permalink
Rename to rspec-primary-source-dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutov committed Jun 29, 2015
1 parent 9ca65e3 commit bca7edc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rspec-mode.el
Expand Up @@ -225,7 +225,7 @@ info, are considered errors."
:type 'boolean
:group 'rspec-mode)

(defcustom rspec-holder-dirs '("app" "lib")
(defcustom rspec-primary-source-dirs '("app" "lib")
"List of directories whose names should be omitted when looking
for spec files corresponding to files inside them."
:type '(repeat string)
Expand Down Expand Up @@ -500,13 +500,13 @@ to navigate to the example or method corresponding to point."
(string-match (concat "^" (concat
(regexp-quote
(rspec-project-root a-file-name))
(regexp-opt rspec-holder-dirs)
(regexp-opt rspec-primary-source-dirs)
"/"))
a-file-name))

(defun rspec-target-file-for (a-spec-file-name)
"Find the target for A-SPEC-FILE-NAME."
(cl-loop for dir in (cons "." rspec-holder-dirs)
(cl-loop for dir in (cons "." rspec-primary-source-dirs)
for target = (replace-regexp-in-string
"/spec/"
(concat "/" dir "/")
Expand Down

0 comments on commit bca7edc

Please sign in to comment.