The fact that tests have passed successfully doesn't mean that our application works as expected. A class inherited from the Spek class contains a special DSL block that allows you to write tests along with a specification. The specification describes functional requirements, use cases, and user interactions.
Spek provides two styles of test specifications and these differ according to the functions that are used:
- given, on, it
- describe, it