Navigation Menu

Skip to content

Commit

Permalink
prefer $ZEUSSOCK to rspec project root
Browse files Browse the repository at this point in the history
  • Loading branch information
barooo committed Jul 27, 2015
1 parent 21d71ed commit e10fcb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rspec-mode.el
Expand Up @@ -566,9 +566,13 @@ file if it exists, or sensible defaults otherwise."
(and rspec-use-bundler-when-possible
(file-readable-p (concat (rspec-project-root) "Gemfile"))))

(defun rspec-zeus-file-path ()
(or (getenv "ZEUSSOCK")
(concat (rspec-project-root) ".zeus.sock")))

(defun rspec-zeus-p ()
(and rspec-use-zeus-when-possible
(file-exists-p (concat (rspec-project-root) ".zeus.sock"))))
(file-exists-p (rspec-zeus-file-path))))

(defun rspec-rake-p ()
(and rspec-use-rake-when-possible
Expand Down

0 comments on commit e10fcb8

Please sign in to comment.