Rspec command for rspec-2.0.0.beta.19

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?

Cheers,
Brad

On Tue, Aug 10, 2010 at 11:17 AM, Brad P. [email protected] wrote:

$ 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?

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.

HTH,
David

What does “gem list rspec” show? And “echo $PATH” ?

El 16/08/2010, a las 06:39, David C.
escribió:

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