From aeb1a6038731931261de9b19e2e9993b63960a18 Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Fri, 31 Jan 2020 18:56:22 +0530 Subject: [PATCH] #1265 Updated test Fixed typo with the variable --- .../grails/gorm/tests/DirtyCheckingAfterListenerSpec.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingAfterListenerSpec.groovy b/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingAfterListenerSpec.groovy index 9c15b6b1a64..97037858fcc 100644 --- a/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingAfterListenerSpec.groovy +++ b/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingAfterListenerSpec.groovy @@ -37,7 +37,7 @@ class DirtyCheckingAfterListenerSpec extends GormDatastoreSpec { void "test state change from listener update the object"() { when: - new Player(name: "John").save() + Player john = new Player(name: "John").save() then: new PollingConditions().eventually { listener.isExecuted && Player.count()} @@ -45,7 +45,7 @@ class DirtyCheckingAfterListenerSpec extends GormDatastoreSpec { when: session.flush() session.clear() - Player john = Player.get(john.id) + john = Player.get(john.id) then: john.attributes