grails-samples / grails-petclinic

The introductory sample application for Grails
68 stars 93 forks source link

Test failure #13

Closed ghost closed 10 years ago

ghost commented 10 years ago

When running ./grailsw test-app against the latest code, one of the tests fail. Output below:

| Failure:  can add a valid owner(org.grails.samples.OwnerControllerSpec)
|  Condition not satisfied:
controller.response.redirectUrl =~ '/owner/show/\\d+'
|          |        |           |
|          |        null        java.util.regex.Matcher[pattern=/owner/show/\d+ region=0,4 lastmatch=]
|          org.codehaus.groovy.grails.plugins.testing.GrailsMockHttpServletResponse@5d8f1dcf
org.grails.samples.OwnerController@4ba3895c
    at org.grails.samples.OwnerControllerSpec.can add a valid owner(OwnerControllerSpec.groovy:49)
mariodavid commented 10 years ago

added a pull request: https://github.com/grails-samples/grails-petclinic/pull/16, which solves this issue.

kktec commented 10 years ago

FYI: This is now fixed as of the newly merged pull request #17.