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 UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
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)