Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

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.