thoughtbot / vim-rspec

Run Rspec specs from Vim
https://robots.thoughtbot.com
MIT License
656 stars 108 forks source link

validate_ruby! #88

Closed benoittgt closed 9 years ago

benoittgt commented 9 years ago

Hello

Don't understand why vim-rspec tell me this :

rspec spec/models/mobile_application_update_spec.rb:306
/Users/bti/.rvm/gems/ruby-2.2.1@project/gems/bundler-1.9.4/lib/bundler/definition.rb:380:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 2.2.1 (Bundler::RubyVersionMismatch)
shell returned 1

But ruby -v return :

$ ruby -v                                                                                                                                        [13:39:11]
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

and Gemfile 2 | ruby '2.2.1'

antonioparisi commented 9 years ago

same problem here

benoittgt commented 9 years ago

It's probably an issue related to rvm and related path but doesn't understand why.

gylaz commented 9 years ago

Make sure you can run :!rspec spec/models/mobile_application_update_spec.rb:306 from Vim first. The issue of the right Ruby version being available for vim, is out side the scope of this plugin.