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 Viewing Todo Items: Part 1

Simon White
Simon White
2,491 Points

No verbose error reporting

I noticed in this video, the teacher gets far more verbose error reporting from rspec, suggesting exactly what went wrong in the test.

I get very little output other than, for example,...

Finished in 0.44509 seconds 1 example, 1 failure

Failed examples:

rspec ./spec/features/todo_items/index_spec.rb:5 # Viewing todo items displays no items when a todo list is empty

Any suggestions as to how I might get improved output?

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Simon;

I'm not a Ruby or rspec wizard, but if memory serves you can use --format documentation to adjust the output. rspec --help would be a great place to look for additional options.

Ken

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

You get only this when simply writing rspec`? The rest of the error messages, more detailed, should be ABOVE what you quoted here (among some deprecation warnings). You need to scroll the console up a bit.