Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Sep 5, 2024
1 parent 94051b8 commit 29ceb58
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,17 @@ class AllTagSpec extends AbstractFormFieldsTagLibSpec implements TagLibUnitTest<

}

@Issue('https://github.com/grails3-plugins/fields/issues/9')
void 'order attribute and except attribute are mutually exclusive'() {
@Issue('https://github.com/gpc/fields/issues/347')
void 'allow order and except attributes'() {
given:
views["/_fields/default/_field.gsp"] = '|${property}|'
views["/_fields/default/_wrapper.gsp"] = '${widget}'

when:
applyTemplate('<f:all bean="personInstance" except="password" order="name, minor, gender"/>', [personInstance: personInstance])
def output = applyTemplate('<f:all bean="personInstance" except="minor, password" order="name, minor, gender"/>', [personInstance: personInstance])

then:
GrailsTagException e = thrown()
e.message.contains 'The [except] and [order] attributes may not be used together.'
output == '|name||gender|'
}

void "f:all tag supports theme"() {
Expand Down

0 comments on commit 29ceb58

Please sign in to comment.