I’ve just uninstalled all versions of rspec and installed
rspec-2.0.0.beta.19 and rspec-rails-2.0.0.beta.19 for a rails project
and I can’t find the rspec command. Based on what bundler is telling
me, I think it should be in: /usr/local/lib/ruby/gems/1.8/gems/bin/
but it isn’t.
$ bundle show rspec
/usr/local/lib/ruby/gems/1.8/gems/rspec-2.0.0.beta.19
Everything seems to have installed properly with “bundle install”
$ bundle show | grep rspec
rspec (2.0.0.beta.19)
rspec-core (2.0.0.beta.19)
rspec-expectations (2.0.0.beta.19)
rspec-mocks (2.0.0.beta.19)
rspec-rails (2.0.0.beta.19)
Anyone have ideas on where I should be looking or a direction to go?
Everything seems to have installed properly with “bundle install”
If bundler installs it, then you have to run it under ‘bundle exec’:
bundle exec rspec
I’ve got an alias set up so I can say:
be rspec spec
There’s something metaphysically pleasing about that.
You can also have Bundler install binstubs in your project root using
“bundle install --binstubs”, which means you can do this when you’re in
your project root:
bin/rspec spec
Cheers,
Wincent
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.