diff --git a/helpers.el b/helpers.el index 9d03665..bb579ac 100644 --- a/helpers.el +++ b/helpers.el @@ -1,22 +1,3 @@ -;; -;; Execute Ruby Code -;; - -(defun is-rails-project () - (when (textmate-project-root) - (file-exists-p (expand-file-name "config/environment.rb" (textmate-project-root))))) - -(defun run-rails-test-or-ruby-buffer () - (interactive) - (if (is-rails-project) - (let* ((path (buffer-file-name)) - (filename (file-name-nondirectory path)) - (test-path (expand-file-name "test" (textmate-project-root))) - (command (list ruby-compilation-executable "-I" test-path path))) - (pop-to-buffer (ruby-compilation-do filename command))) - (ruby-compilation-this-buffer))) - - ;; ;; Auto-indent on Paste ;;