validate_ruby!
benoittgt opened this issue · 3 comments
benoittgt commented
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
same problem here
benoittgt commented
It's probably an issue related to rvm and related path but doesn't understand why.
gylaz commented
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.