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
Can't run bin/rspec spec/features/todo_lists/create_spec.rb
When I try to run the command <code>bin/rspec spec/features/todo_lists/create_spec.rb</code> from my command prompt on windows 8.1 I get the error <code>'bin' is not recongnized as an internal or external command, operable program or batch file.</code>
Is there a way to fix this? It does not work to <code>cd</code> into the bin dir and then run <code>rspec ../spec/features/todo_lists/create_spec.rb</code>
Thanks, Fredrik A. Madsen-Malmo
Hey Fredrik (eller Hallo, hvordan har du det!),
I had the same issue. It turns out (if I am not mistaken) that Jason Seifer simply has his directories set up differently than what we might have it. Thus, simply drop the
bin and you'll be all set. This is what I did, and it's worked like a charm ever since; I've had no issues continuing the lessons.
I hope this helps. :)
Ethan LowryCourses Plus Student 7,323 Points
This is the same as your other question in that Rspec is not on your system PATH. You're not meant to have to be in any particular directory or have to to specify 'bin' to use these commands. It seems your Ruby / Rails environment may not have been set up correctly - all gems you install (such as Rspec in this case) should automatically be added to your Path rather than having to add them manually. Maybe look into using RVM to manage your Ruby and gems as this should ensure everything you need is on your Path.
David Gross19,443 Points
Have you checked in your terminal if its in the bin directory ?