nesting examples for readability

10 views
Skip to first unread message

crankydillo

unread,
Feb 9, 2013, 5:26:49 PM2/9/13
to specs...@googlegroups.com
Hi,

I am trying to do something akin to the following:

"A" should {

  "do something that produces a result" in {
      val result = doSomething
     
     "which has" in {
          "a name" in {
              result.name mustEqual "name"
          }
         
         "a birthday" in {
             result.birthdat mustEqual OldAsDirt
         }
     }
  }

Do I have to use the context/scope mechanism for this?  On first glance, I find that a little confusing, but I can dig in if there is nothing simpler to accomplish the above.

crankydillo

unread,
Feb 9, 2013, 5:44:50 PM2/9/13
to specs...@googlegroups.com
I just saw on the next message that I should have posted this on specs2..  Sorry about that.
Reply all
Reply to author
Forward
0 new messages