Permalink
Browse files

Remove jasmine test-running bindings

  • Loading branch information...
1 parent cac5ba9 commit 5e515d6b06e7bc14fdd5f6b0191f67c884a1e724 @lmarburger committed Jan 14, 2013
Showing with 0 additions and 11 deletions.
  1. +0 −11 vimrc
View
11 vimrc
@@ -182,16 +182,13 @@ function! RunTestFile()
let in_spec_file = match(expand("%"), '_spec.rb$') != -1
let in_test_file = match(expand("%"), '_test.rb$') != -1
let in_feature_file = match(expand("%"), '.feature$') != -1
- let in_jasmine_spec_file = match(expand("%"), '_spec.coffee$') != -1
if in_spec_file
call SetTestFile()
elseif in_test_file
call SetTestFile()
elseif in_feature_file
call SetTestFile()
- elseif in_jasmine_spec_file
- call SetTestFile()
elseif !exists("g:grb_test_file")
return
end
@@ -211,16 +208,13 @@ function! ChooseTestRunner(filename)
let run_specs = match(a:filename, '_spec.rb$') != -1
let run_tests = match(a:filename, '_test.rb$') != -1
let run_feature = match(a:filename, '.feature$') != -1
- let in_jasmine_spec_file = match(a:filename, '_spec.coffee$') != -1
if run_specs
call RunSpecs(a:filename)
elseif run_tests
call RunTests(a:filename)
elseif run_feature
call RunFeature(a:filename)
- elseif in_jasmine_spec_file
- call RunJasmineHeadlessFeature(a:filename)
endif
endfunction
@@ -242,10 +236,5 @@ function! RunFeature(filename)
exec ":!time bundle exec cucumber -r features " . a:filename
endfunction
-function! RunJasmineHeadlessFeature(filename)
- silent exec ":!echo jasmine-headless-webkit -c " . a:filename
- exec ":!time jasmine-headless-webkit -c " . a:filename
-endfunction
-
nmap <leader>. :call RunTestFile()<CR>
nmap <leader>> :silent :!clear<cr>:w<cr>:!ruby -Ilib %<cr>

0 comments on commit 5e515d6

Please sign in to comment.