Read more

Output the descriptions of RSpec examples while they are running

Ulrich Berkmueller
March 14, 2011Software engineer

In order to

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

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

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
Posted by Ulrich Berkmueller to makandra dev (2011-03-14 17:47)