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 Pauly <bpauly at gmail.com> wrote:> 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?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> > Cheers, > Brad > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
What does "gem list rspec" show? And "echo $PATH" ? On Aug 10, 2010, at 9:17 AM, Brad Pauly wrote:> 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 > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Wincent Colaiuta
2010-Aug-16 08:30 UTC
[rspec-users] rspec command for rspec-2.0.0.beta.19
El 16/08/2010, a las 06:39, David Chelimsky escribi?:> On Tue, Aug 10, 2010 at 11:17 AM, Brad Pauly <bpauly at gmail.com> wrote: >> 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? > > 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