From d1ed9a35d6b5468c464386655e62980aa8d67d57 Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Mon, 16 Dec 2013 18:41:25 -0500 Subject: [PATCH] use RVM when available [fixes #3] --- minitest.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/minitest.el b/minitest.el index bff6928..15007e7 100644 --- a/minitest.el +++ b/minitest.el @@ -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)))