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! While you're at it, check out some resources Treehouse students have shared here.
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 trialRichard Stringfellow
6,883 Pointshelp 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.
Christopher Mamian
969 PointsThe video explicitly says to type in bin/rails, but removing bin solved the problem. Thanks!
1 Answer
Sharnie Ivery
8,634 PointsTry rails g rspec:install
at the root of your rails application
Richard Stringfellow
6,883 PointsMr Ivery, thank you very much for your response. It is truly a great relief, and I appreciate your help tremendously.
Aurelien Schlumberger
6,127 PointsAurelien Schlumberger
6,127 Pointswhy 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.