GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 93 forks source link

Chapter 9, listing 9.9 #136

Open MudassarBashir opened 9 years ago

MudassarBashir commented 9 years ago

In this listing, it appears that the function private login(String username, String password) is nested inside the functional test def "Submitting a new post". A direct copy and pasting of this listing into the file TimelineFunctionalSpec.groovy causes errors when trying to run the functional test. Looking at chapter 9's source code here, I confirmed my suspicion that the nesting isn't correct.

pledbrook commented 9 years ago

Oops, yes. Not sure how that happened.

pledbrook commented 9 years ago

That listing has another problem which is the usage of the present property. At some point, Geb replaced that with an empty property.