Skip to content

Instantly share code, notes, and snippets.

@sys1yagi
Created September 23, 2016 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sys1yagi/b1191ec45dbf7950be7fff5b38061b1a to your computer and use it in GitHub Desktop.
Save sys1yagi/b1191ec45dbf7950be7fff5b38061b1a to your computer and use it in GitHub Desktop.
fun given(description: String, given: Given.() -> Unit) {
given.invoke(Given())
}
class Given {
fun on(description: String, on: On.() -> Unit) {
on.invoke(On())
}
}
class On {
fun it(description: String, it: It.() -> Unit) {
it.invoke(It())
}
}
class It {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment