Created
March 8, 2013 10:25
-
-
Save ignacy/5115560 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun run-file-or-spec () | |
| "If we're in a spec file - run rspec; in other case use quickrun" | |
| (interactive) | |
| (let ((file-name-ending (substring (file-name-nondirectory (buffer-file-name)) -8 nil))) | |
| (if (string= "_spec.rb" file-name-ending) | |
| (rspec-verify) | |
| (quickrun)))) | |
| (bind "<f14>" 'run-file-or-spec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment