Skip to content

Commit 8be41dc

Browse files
Remove @ignore from test
It seems we have to tell GORM not to validate so a custom id can be populated. We need to investigate that.
1 parent 756c837 commit 8be41dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

grails-test-suite-persistence/src/test/groovy/org/codehaus/groovy/grails/orm/hibernate/FirstAndLastMethodSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ class FirstAndLastMethodSpec extends GormSpec {
115115
result?.spanishName == 'uno'
116116
}
117117

118-
@Ignore
119118
void "Test first and last method with non standard identifier"() {
120119
given:
121120
['one', 'two', 'three'].each { name ->
122-
assert new SimpleWidgetWithNonStandardId(name: name).save()
121+
assert new SimpleWidgetWithNonStandardId(name: name).save(validate: false)
123122
}
124123
assert SimpleWidgetWithNonStandardId.count() == 3
125124

0 commit comments

Comments
 (0)