Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


help with the "Set up Git and Add Gems" video.

After following the video this far:

group :test do gem 'rspec-rails', '~> 2.0' end

group :test do gem 'capybara', '~> 2.1.0' end

and getting this result:

Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

, entering this command:

Richards-Mac-mini:odot ricstr$ bin/rails generate rspec:install

generated tis result:

Could not find generator rspec:install. Richards-Mac-mini:odot ricstr$

I do not know what to do about it.

why did you run the command starting with bin/rails? I don't know if you set up your gems locally or for your entire machine, but normally gems can be accessed at the root of your application. To make sure rspec is installed, it will add 3 new files, then you can run the command bundle exec rspec from the root of your application.

Christopher Mamian
Christopher Mamian
969 Points

The video explicitly says to type in bin/rails, but removing bin solved the problem. Thanks!

1 Answer

Try rails g rspec:install at the root of your rails application

Mr Ivery, thank you very much for your response. It is truly a great relief, and I appreciate your help tremendously.