Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no color when running spec ? #27

Closed
dfang opened this issue Aug 27, 2013 · 3 comments
Closed

no color when running spec ? #27

dfang opened this issue Aug 27, 2013 · 3 comments

Comments

@dfang
Copy link

dfang commented Aug 27, 2013

I've configured --color --drb in my .rspec file, t runs the spec file, no color
i even tried ~/.rspec file, but still no color , i don't know why, anyone can help ?
thanks !

@gylaz
Copy link
Contributor

gylaz commented Aug 27, 2013

Can you provide more information about your setup?

@dfang
Copy link
Author

dfang commented Aug 27, 2013

part of Gemfile:

group :development, :test do
  gem 'rspec-rails', '~> 2.14.0'
  gem 'spork-rails', :github => 'sporkrb/spork-rails'
  gem 'factory_girl_rails', '~> 4.2.1'
  gem 'guard-spork', '~> 1.5.1'
  gem 'guard-rspec', '~> 3.0.2'
end

.rspec file in rails app folder:
--color --drb

part of my .vimrc, i use vim-dispatch and vim-rspec

" Vim for Rspec
  " let g:rspec_command = "!bundle exec rspec --drb {spec}"
  let g:rspec_command = "Dispatch bundle exec rspec {spec}"
  map \t :call RunCurrentSpecFile()<CR>
  map \s :call RunNearestSpec()<CR>
  map \l :call RunLastSpec()<CR>
  map \a :call RunAllSpecs()

I'm using oh-my-zsh and iterm2 on Mac OSX 10.8.5, i tried with or without spork process running,
and i tried to set shell=bash or zsh in vim command mode, the same, no color

thanks !

@calebhearth
Copy link
Contributor

It should work if you use open tmux, but due I believe to the way Dispatch spawns processes, color doesn't come through in just Bash.

Regardless, I'm pretty sure this is a Dispatch issue (to verify, uncomment the original g:rspec_command and comment the Dispatch line. When I run !rspec {spec} I get color).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants