Spock Web Console

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


Published 1 year ago by Griffin with tags NotWorking
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
def "Check that the rugby player #player who has Irish status #isIrish plays for Ireland"(String player, Boolean isIrish) {
    given:"An instance of Rugby player validator"
    RugbyPlayerValidator rugbyPlayerValidator = new RugbyPlayerValidator()

    rugbyPlayerValidator.isIrish(player)  == isIrish

    player               ||  isIrish
    "Johny Sexton"       ||  true
    "Stuart Hogg"        ||  false
    "Conor Murray"       ||  true
    "George North"       ||  false
    "Jack Nowell"        ||  true