Skip to content

Commit 5446187

Browse files
authored
UnitSpec example
1 parent 10c0233 commit 5446187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ class ParentSpec extends Specification implements GrailsUnitTest {
7777
def phone = new PhoneNumber(telephoneType: new PhoneNumber.TelephoneType())
7878
7979
when:
80-
parent.validate(['telephoneType'])
80+
phone.validate(['telephoneType'])
8181
8282
then:
83-
parent.hasErrors()
83+
phone.hasErrors()
8484
8585
parent.errors.getFieldError('telephoneType.id').code == 'nullable'
8686
parent.errors.getFieldError('telephoneType.countryCodeRecommended').code == 'nullable'

0 commit comments

Comments
 (0)