Output the descriptions of RSpec examples while they are running

Posted About 13 years ago. Visible to the public.

In order to

  • track down warnings and to see failing specs immediately
  • or to get an overview of the core functionalities,

you can use RSpec's "nested" format. It looks like this:

Tool
  validations
    should require model to be set
    should require place_id to be set
  #identifier
    should include the model and tag if the tool has a tag
    should return the model if the tool has no tag
  .search
    should find tools by model and maker
    should find tools by serial number

Call RSpec like this in order to use the nested format:

spec spec -f documentation
Ulrich Berkmueller
Last edit
About 2 years ago
Felix Eschey
License
Source code in this card is licensed under the MIT License.
Posted by Ulrich Berkmueller to makandra dev (2011-03-14 16:47)