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

Ruby

rspec 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

Like 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.

Thanks for the help!

Are you sure that you are in the right directory. You need to be in treehouse/projects/odot for it to work.

Yes, I was running the rails server from the same command prompt and the odot site was working.