Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,440 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.