On Wed, Nov 30, 2011 at 5:44 PM, Somnath Mallick <li...@ruby-forum.com>wrote:

> Just had one final question... what is the difference between:
>
> bundle exec "command"
> and
> directly running the command?
>

"bundle exec" makes sure that you're using the executables that ship along
with
the gem installed by bundler while running only the command uses the one
recognized by your system.


> Like for me bundle exec rspec throws and error while rspec does not.
>

This usually happens when the rspec bundle exec runs is of a different
version.
Try getting the version of the rspec executable that works and change your
Gemfile
to use that rspec version.  Run bundle install and try running rspec again
with
bundle exec.


>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to