Skip to content

Commit

Permalink
use relative filename
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurnn committed Feb 10, 2015
1 parent d8660de commit 91f7b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minitest.el
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The current directory is assumed to be the project's root otherwise."

(defun minitest--file-command (&optional post-command)
"Run COMMAND on currently visited file."
(let ((file-name (buffer-file-name (current-buffer)))
(let ((file-name (file-relative-name (buffer-file-name) (minitest-project-root)))
(bundle '("bundle" "exec"))
(command (minitest-test-command)))
(if file-name
Expand Down

0 comments on commit 91f7b38

Please sign in to comment.