Skip to content

Commit

Permalink
Restore and update GrailsWebDataBindingListenerSpec test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfredley committed Dec 11, 2024
1 parent ef551a2 commit 8d11979
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class GrailsWebDataBindingListenerSpec extends Specification implements GrailsUn
}
}

@Ignore("Too few invocations")
void "test that DataBindingListener is added to GrailsWebDataBinder"() {

given:
Expand All @@ -27,9 +26,9 @@ class GrailsWebDataBindingListenerSpec extends Specification implements GrailsUn
binder.bind(testWidget, ["name": "Clock"] as SimpleMapDataBindingSource)

then:
1 * dataBindingListenerAdapter.supports(TestWidget) >> true
1 * dataBindingListenerAdapter.beforeBinding(testWidget, _)
1 * dataBindingListenerAdapter.afterBinding(testWidget, _)
3 * dataBindingListenerAdapter.supports(TestWidget) >> true
3 * dataBindingListenerAdapter.beforeBinding(testWidget, _)
3 * dataBindingListenerAdapter.afterBinding(testWidget, _)
}

static class TestWidget {
Expand Down

0 comments on commit 8d11979

Please sign in to comment.