Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Jul 13, 2012
Shu Uesugi Actually use CheckForSpecHelper 8e4caa2
Shu Uesugi Fix documentation bug c19d4b1
Commits on Jul 19, 2012
Mike Skalnik Merge pull request #21 from chibicode/master
CheckForSpecHelper fix, documentation fix
f29b3b2
Showing with 13 additions and 9 deletions.
  1. +11 −7 autoload/vroom.vim
  2. +2 −2 doc/vroom.txt
18 autoload/vroom.vim
View
@@ -125,7 +125,7 @@ endfunction
" 'options': any additional options (e.g., '--drb')
" 'line_number': the line number of the test to run (e.g., ':4')
function s:RunTests(filename, args)
- call s:PrepareToRunTests()
+ call s:PrepareToRunTests(a:filename)
let runner = get(a:args, 'runner', s:DetermineRunner(a:filename))
let opts = get(a:args, 'options', '' )
@@ -148,13 +148,13 @@ endfunction
" Internal: Perform all the steps we need to perform before actually running
" the tests: clear the screen, write the files, set the test_runner_prefix,
" set the color_flag.
-function s:PrepareToRunTests()
+function s:PrepareToRunTests(filename)
if ! g:vroom_use_vimux
call s:ClearScreen()
end
call s:WriteOrWriteAll()
- call s:SetTestRunnerPrefix()
+ call s:SetTestRunnerPrefix(a:filename)
call s:SetColorFlag()
endfunction
@@ -201,16 +201,20 @@ endfunction
" Settings (functions to determine) {{{
" Internal: Set s:test_runner_prefix variable
-function s:SetTestRunnerPrefix()
+function s:SetTestRunnerPrefix(filename)
let s:test_runner_prefix = ''
- call s:IsUsingBundleExec()
+ call s:IsUsingBundleExec(a:filename)
call s:IsUsingBinstubs()
endfunction
" Internal: Check for a Gemfile if we are using `bundle exec`
-function s:IsUsingBundleExec()
+function s:IsUsingBundleExec(filename)
if g:vroom_use_bundle_exec
- call s:CheckForGemfile()
+ if g:vroom_detect_spec_helper
+ call s:CheckForSpecHelper(a:filename)
+ else
+ call s:CheckForGemfile()
+ endif
endif
endfunction
4 doc/vroom.txt
View
@@ -96,8 +96,8 @@ g:vroom_use_vimux *vroom_use_vimux*
g:vroom_use_bundle_exec *vroom_use_bundle_exec*
When appropriate (see |vroom_detect_spec_helper|) use
`bundle exec` before test runner command. If set to
- 1, `bundle exec` is never used.
- Default: 0
+ 0, `bundle exec` is never used.
+ Default: 1
g:vroom_use_binstubs *vroom_use_binstubs*
If set to 1, lets Vroom know you are using binstubs.

No commit comments for this range

Something went wrong with that request. Please try again.