Skip to content

Commit

Permalink
#1265 Updated test
Browse files Browse the repository at this point in the history
Fixed typo with the variable
  • Loading branch information
puneetbehl committed Jan 31, 2020
1 parent 635bcc4 commit aeb1a60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ 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()}

when:
session.flush()
session.clear()
Player john = Player.get(john.id)
john = Player.get(john.id)

then:
john.attributes
Expand Down

0 comments on commit aeb1a60

Please sign in to comment.