Skip to content

Commit

Permalink
- rails-spec:run-this-spec
Browse files Browse the repository at this point in the history
M    ChangeLog
M    rails-spec.el


git-svn-id: svn+ssh://rubyforge.org/var/svn/emacs-rails/trunk@220 cc5033d0-740f-0410-afc7-949910e492f2
  • Loading branch information
crazypit committed Dec 23, 2007
1 parent 31feec4 commit d008cde
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2007-12-23 Michael Klishin <michael.klishin@railsware.com>
* rails-spec.el (rails-spec:run-this-spec): Run spec where the point is

2007-11-04 Dmitry Galinsky <dima.exe@gmail.com>

* rails-core.el (rails-core:model-exist-p): fixed error, when model-file not exists.
Expand Down
9 changes: 9 additions & 0 deletions rails-spec.el
Expand Up @@ -61,4 +61,13 @@
(interactive)
(rails-spec:run-files rails-spec:last-files))

(defun rails-spec:run-this-spec ()
"Run spec where the point is"
(interactive)
(let ((default-process-coding-system '(utf-8 . utf-8)))
(rails-project:compile-in-root
(concat rails-spec:runner " "
rails-spec:runner-options (concat " --line " (substring (what-line) 5) " ")
(buffer-file-name (current-buffer))))))

(provide 'rails-spec)

0 comments on commit d008cde

Please sign in to comment.