Skip to content

Instantly share code, notes, and snippets.

@mbriggs
Created November 22, 2011 03:22
Show Gist options
  • Save mbriggs/1384804 to your computer and use it in GitHub Desktop.
Save mbriggs/1384804 to your computer and use it in GitHub Desktop.
(defun find-functional-test (test-file)
(find-file (replace-regexp-in-string "_test" "" test-file
(replace-regexp-in-string "test\\/functional"
"app\/controllers\/"
test-file))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment