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 trial
Ryan Vermotoen
4,262 Pointsrspec install not working
I am trying to follow the to do rails project within my own project, when I try to do "rails g rspec:install" in my terminal I get the following error: Could not find generator rspec:install
The gem is in the gemfile, I can run bundle show rspec and it shows me that it is in fact installed.
I've looked all over the internet and can't find an answer to this issue, any help would be greatly appreciated. My gemfile can be found here:
https://gist.github.com/ryanvermooten/6faa61fc72eab27c4e9f
It also doesn't make a difference if I state which version of rspec to use or not.
1 Answer
Ryan Vermotoen
4,262 PointsWomp. I figured it out, apparently I needed to add the gem 'rspec', after doing that everything was happy days. Don't know why that was different to the recorded version, but hey, if anyone else is stuck thats what worked for me. So just to be 100% clear, that means you need gem 'rspec-rails' plus gem 'rspec'
and then bundle obvs.