Changeset 108

Show
Ignore:
Timestamp:
01/25/08 16:26:06 (9 months ago)
Author:
abedra
Message:

adding focus test-ability for test-spec

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • incubator/.elisp/ini/ini-testing.el

    r45 r108  
    163163(defun rel-find-test-spec-method-name () 
    164164  "Return the name of the current test/spec method." 
     165  (interactive) 
    165166  (save-excursion 
    166167    (next-line) 
    167     (re-search-backward "^ *it \\([a-zA-Z]+\\)") 
     168    (re-search-backward "^ *it ['\"]\\(.*\\)['\"]") 
    168169    (buffer-substring (match-beginning 1) (match-end 1)))) 
    169170 
     
    324325             (jw-test-start-process 
    325326              jw-ruby-command jw-test-options 
    326               file-name (concat "-n" method-name)) 
     327              file-name (concat "-n" " '/" method-name "/'")) 
    327328             (jw-insert_headers 
    328329              "= Test Method ...\n" 
     
    332333               (jw-test-start-debugging 
    333334                jw-rdebug-command jw-test-options 
    334                 file-name "--" (concat "-n" method-name))) )))) 
     335                file-name "--" (concat "-n" " '/" method-name "/'"))) )))) 
    335336 
    336337;;; -- Toggle Enhancements -------------------------------------------