Skip to content

Commit f82e86a

Browse files
authored
Fix indentation (#13001)
1 parent f9a8837 commit f82e86a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

grails-test-suite-uber/src/test/groovy/org/grails/validation/TestingValidationSpec.groovy

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,29 @@ class TestingValidationSpec extends Specification implements DomainUnitTest<Pers
8282
given:
8383
def person = new Person(name: 'Jeff', age: 42, email: '[email protected]')
8484

85-
when:
86-
person.properties = [age: 'some string', name: 'Jeff Scott Brown', email: 'abcdefgh']
85+
when:
86+
person.properties = [age: 'some string', name: 'Jeff Scott Brown', email: 'abcdefgh']
8787

88-
then:
89-
1 == person.errors.errorCount
88+
then:
89+
1 == person.errors.errorCount
9090

91-
when:
92-
def ageError = person.errors.getFieldError('age')
91+
when:
92+
def ageError = person.errors.getFieldError('age')
9393

94-
then:
95-
'some string' == ageError.rejectedValue
94+
then:
95+
'some string' == ageError.rejectedValue
9696

97-
when:
98-
person.validate()
99-
def errorCount = person.errors.errorCount
100-
ageError = person.errors.getFieldError('age')
101-
def emailError = person.errors.getFieldError('email')
97+
when:
98+
person.validate()
99+
def errorCount = person.errors.errorCount
100+
ageError = person.errors.getFieldError('age')
101+
def emailError = person.errors.getFieldError('email')
102102

103-
then:
104-
errorCount == 2
105-
'typeMismatch' in ageError.codes
106-
'person.email.email.error' in emailError.codes
107-
'some string' == ageError.rejectedValue
103+
then:
104+
errorCount == 2
105+
'typeMismatch' in ageError.codes
106+
'person.email.email.error' in emailError.codes
107+
'some string' == ageError.rejectedValue
108108
}
109109
}
110110

0 commit comments

Comments
 (0)