Spock Web Console

subscribe to the feed Subscribe
Dublintech (via #spockwebconsole)
tweet this script Tweet

Dublintech

Published 4 months ago by Dublintech with tags Hello World in Spock
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
import spock.lang.*

// Hit 'Run Script' below
class MyFirstSpec extends Specification {
  def "Hello World introduction to Spock test"() {
    def firstWord = "Hello" 
    def secondWord = "World" 

    expect:
    firstWord + " " + secondWord == "Hello World"
  }
}