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 trialMichael Nickey
Courses Plus Student 13,524 PointsRspec proTip
When running the rspecs such as bin/rspec spec/features/todo_lists/create_spec.rb I like to tag on a couple options.
I use bin/rspec spec/features/todo_lists/create_spec.rb -f d instead. The -f formats the rspec in a more humanly readable format. the 'd' tells the format to use documentation. Using this, it's easier (for me at least) to see where issues are. For instance, I was served with this:
Unable to find link "New Todo List"
The link I was looking for had a lowercase 'l' instead of the capitalized 'L'. Using the -f d options made this much easier for me to find the issue and move on.
1 Answer
Michael Nickey
Courses Plus Student 13,524 PointsTo add to this, you can also add a file underneath the "app" directory titled ".rspec" In that file the entire contents of the file would be:
--color
--format doc
This will always your rspec runs to use the --color and --format doc options.