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 Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Write Our First Tests

Brian Schmitz
Brian Schmitz
11,167 Points

Trying to run spec test in Building An Easy Rails Application

According to the video in "Building A Rails Application" we want to add directories with subdirectories that aren't currently there. I followed what the video said - "mkdir -p spec/features/todo_lists". I am getting the following message in the terminal - "The syntax of the command is incorrect."

Can someone please advise? Thank you, help is appreciated.

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Well, it works properly in Linux, I suppose in Mac as well. Are you running Windows?

You can go to the spec directory manually cd spec, then create the features directory mkdir features, go there cd features and then create the todo_lists directory mkdir todo_lists - seems like the -p option does not work under Windows, maybe it has some equivalent.

Brian Schmitz
Brian Schmitz
11,167 Points

Alright thanks. I'll do that then and leave off the -p or the sub-directories and go from there.