Skip to content

Commit

Permalink
Use expand-file-name instead of concat for getting full path.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhallac committed Jul 26, 2011
1 parent bd7c5b9 commit 577ce7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/ruby-compilation-rspec.el
Expand Up @@ -12,7 +12,7 @@
(when (and (not (null buffer-file-name)) (string-match "_spec.rb$" buffer-file-name))
(set (make-local-variable 'ruby-compilation-executable)
(if (some (lambda (x)
(file-executable-p (concat x "/rspec")))
(file-executable-p (expand-file-name "rspec" x)))
exec-path)
"rspec"
"spec"))
Expand Down

0 comments on commit 577ce7d

Please sign in to comment.