Skip to content

Instantly share code, notes, and snippets.

@okaminu
Created March 18, 2021 13:12
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 okaminu/6e5c717dba532fc391b723c1f5ba0f45 to your computer and use it in GitHub Desktop.
Save okaminu/6e5c717dba532fc391b723c1f5ba0f45 to your computer and use it in GitHub Desktop.
class HelloWorldSpec extends Specification {
"The 'Hello world' string" should {
"contain 11 characters" should {
"Hello world" must have size(11)
}
"start with 'Hello'" should {
"Hello world" must startWith("Hello")
}
"end with 'world'" should {
"Hello world" must endWith("world")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment