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
Marty Hitchcock
13,108 Pointsrspec issue
Following along with the Odot lessons and when it comes to the rspec part I have issues.
When I type:
bin/rails generate rspec:install
It comes back with:
'bin' is not recognized as an internal or external command, operable program or batch file.
I also carried on a bit further hoping that didn't matter but had same error when typing: bin/rake spec
2 Answers
Michelle Cannito
8,992 PointsLike me, you are running from a PC. Unfortunately, as with other courses, modifications for running on a PC are not given, so we have to fumble through.
In the two cases given, change the directory to bin before running the rails or rake commands.
cd bin
rails generate rspec:install
and later again
cd bin
rake spec
Now, later in the course, I am trying to run rspec from the bin directory, but get a load error when I add the file path. I'll start a new discussion for that, but at least the above solution for your two issues will get you further along.
Mark Christiansen
7,622 PointsAre you sure that you are in the right directory. You need to be in treehouse/projects/odot for it to work.
Marty Hitchcock
13,108 PointsYes, I was running the rails server from the same command prompt and the odot site was working.
Marty Hitchcock
13,108 PointsMarty Hitchcock
13,108 PointsThanks for the help!