java-tutorials/gradle/greeting-library/bin/greeter/GreetingFormatterSpec.groovy

14 lines
281 B
Groovy

package greeter
import spock.lang.Specification
class GreetingFormatterSpec extends Specification {
def 'Creating a greeting'() {
expect: 'The greeeting to be correctly capitalized'
GreetingFormatter.greeting('gradlephant') == 'Hello, Gradlephant'
}
}