Output the descriptions of RSpec examples while they are running

Updated . Posted . 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 Berkmüller
Last edit
Felix Eschey
License
Source code in this card is licensed under the MIT License.
Posted by Ulrich Berkmüller to makandra dev (2011-03-14 16:47)