Skip to content

Commit

Permalink
use RVM when available
Browse files Browse the repository at this point in the history
[fixes #3]
  • Loading branch information
arthurnn committed Dec 16, 2013
1 parent 88cbc92 commit d1ed9a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minitest.el
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ The current directory is assumed to be the project's root otherwise."
"Variable to store the last command running.")

(defun minitest--run-command (command &optional file-name)
(if (fboundp 'rvm-activate-corresponding-ruby)
(rvm-activate-corresponding-ruby))

(let ((default-directory (minitest-project-root))
(compilation-scroll-output t)
(actual-command (concat (or minitest-default-env "") " " command)))
Expand Down

0 comments on commit d1ed9a3

Please sign in to comment.