I want to run specs in vim using the vim-rspec mappings provided in the vimrc from the Thoughtbot dotfiles.
Initially my problem with doing so was that the
rspec command wasn’t being recognized in my shell - it required I prefix it with
So then I started investigating binstubs. I ended up running
bundle install --binstubs to generate binstubs for all my gems in the project. In order to run it without the
/bin prefix I included
export PATH="./bin:$PATH" in my
I purposely did not include the
./bin/stubs directory because from what I understood, Thoughbot are moving towards the Rails convention of simply using
The problem I’m facing now is that whenever I try to run specs in vim I’m greeted with the error below:
rspec spec/features/user_completes_signup_steps_spec.rb /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- bundler/setup (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./bin/rspec:14 shell returned 1
Any ideas on what might be the issue? It doesn’t seem to be able to
require 'bundler/setup' in the .bin file?