Skip to content

Wrong data generated on 2nd call to build() with email & presense of unique constraints #91

@erichelgeson

Description

@erichelgeson

Given an email constraint, the first .build() generates the correct email. But the second time .build() is called it generates the value x which is not a valid email. I know there are limitations with unique but it is odd it generates the right data the first time & not the second. Note that even unique: false causes this.

See example spec here https://github.com/erichelgeson/btdIssue/blob/master/src/test/groovy/test/FooControllerSpec.groovy

This did work in b-t-d 3.0.1 & Grails 3.2.11

Environment: Grails 3.3.2, b-t-d 3.3.0.RC1, Mac OSX 10.13.2, JDK 8u152

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions