Skip to content

Commit

Permalink
whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rmm5t committed May 15, 2008
1 parent 872bb5c commit dd4a565
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions rails-shoulda.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
;; Authors: Rob Christie <robchristie at gmail dot com>,
;; Keywords: ruby rails languages oop


;;; License

;; This program is free software; you can redistribute it and/or
Expand All @@ -21,7 +20,6 @@
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


(defun rails-shoulda:current-test ()
"Return the test name based on point"
(save-excursion
Expand All @@ -33,15 +31,13 @@
(when (and should context)
(concat context " should " should)))))


(defun rails-shoulda:current-context ()
"Return the shoulda context name based on point"
(save-excursion
(ruby-end-of-block)
(when (search-backward-regexp "^[ ]*context \"\\([a-z0-9_ ]+\\)\"[ ]*do" nil t)
(match-string-no-properties 1))))


(defun rails-shoulda:run-current-should ()
"Run should assertion based on the location of point."
(interactive)
Expand All @@ -50,7 +46,6 @@
(when method
(rails-test:run-single-file file (format "--name=/%s/" method)))))


(defun rails-shoulda:run-current-context ()
"Run tests associated with the context based on the location of point."
(interactive)
Expand All @@ -59,6 +54,4 @@
(when method
(rails-test:run-single-file file (format "--name=/%s/" method)))))



(provide 'rails-shoulda)
(provide 'rails-shoulda)

0 comments on commit dd4a565

Please sign in to comment.