[rspec-users] rspec command for rspec-2.0.0.beta.19

Wincent Colaiuta win at wincent.com
Mon Aug 16 04:30:36 EDT 2010

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


More information about the rspec-users mailing list