Yesterday on jokerconf someone suggested out of a ...
# spek
o
Yesterday on jokerconf someone suggested out of a joke that you could do this:
Copy code
fun String.invoke(body: Dsl.() -> Unit) = describe(this, body)
and use it like
Copy code
“given an instance” {
   …
   “on calling method” {
      …
   }
}
I thought it could be indeed nice way for describing speks 🙂
😀 2