http://jetbrains.github.io/spek/ (via)
Sample code from the Spek website written in the Spek DSL:
class TaxCalculatorSpecs: Spek() {{
given("Tax rate calculator with default locale settings") {
val taxRateCalculator = TaxRateCalculator()
on("calculating the rate for an income of 200 and an average change of 10 per semester") {
val value = taxRateCalculator.calculateRate(200, 10)
it("should result in a value of 300") {
assertEquals(300, value)
}
}
}
}}