Skip to content

Commit

Permalink
Fix namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Pike committed May 20, 2012
1 parent edd7c6a commit 0b2a5b3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions emacs-spork.el
Expand Up @@ -79,7 +79,7 @@ simple algorithm that may grow over time if needed."
(sw-shell/commands spork-test-buffer cmd))) (sw-shell/commands spork-test-buffer cmd)))


(defun es-test-files (filenames) (defun es-test-files (filenames)
(test-file (mapconcat 'identity filenames " "))) (es-test-file (mapconcat 'identity filenames " ")))


(mapconcat 'identity (list "sdf" "asdf") " ") (mapconcat 'identity (list "sdf" "asdf") " ")


Expand Down Expand Up @@ -182,9 +182,6 @@ folder being a directory with a folder called test in it."
;; (es-functional-test-for-model "sample_list") ;; (es-functional-test-for-model "sample_list")
;; (es-unit-test-for-model "sample_list") ;; (es-unit-test-for-model "sample_list")
;; (es-tests-for-model "sample_list") ;; (es-tests-for-model "sample_list")
;; (es-tests-for-model "bh_data_file")
;; (es-tests-for-model "data_file")
;; (es-tests-for-model "dashboard")


(defun es-model-for-file (filename) (defun es-model-for-file (filename)
"Returns an underscored model name from a path name using rails' conventions" "Returns an underscored model name from a path name using rails' conventions"
Expand All @@ -195,7 +192,6 @@ folder being a directory with a folder called test in it."
((string-match ".*controllers/\\(.*\\)_controller.rb" filename) ((string-match ".*controllers/\\(.*\\)_controller.rb" filename)
(es-singularize (match-string 1 filename))))) (es-singularize (match-string 1 filename)))))
;; (es-model-for-file "app/models/foo.rb") ;; (es-model-for-file "app/models/foo.rb")
;; (es-model-for-file "app/models/anomalies/foo.rb")
;; (es-model-for-file "app/views/foos/index.html.erb") ;; (es-model-for-file "app/views/foos/index.html.erb")
;; (es-model-for-file "app/controllers/foos_controller.rb") ;; (es-model-for-file "app/controllers/foos_controller.rb")


Expand Down

0 comments on commit 0b2a5b3

Please sign in to comment.