Created
January 15, 2010 00:39
-
-
Save reinh/277662 to your computer and use it in GitHub Desktop.
This file contains 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
function s:GetTestCmd() | |
let test_patterns = {} | |
let test_patterns['_test.rb$'] = "ruby %p" | |
let test_patterns['_spec.rb$'] = "spec -f specdoc %p" | |
for [pattern, cmd] in items(test_patterns) | |
if @% =~ pattern | |
return cmd | |
endif | |
endfor | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment