-
Notifications
You must be signed in to change notification settings - Fork 42
Chapter 1 errata
pledbrook edited this page Sep 13, 2010
·
2 revisions
- “Grails automatically created a shell unit-test case in /grails-app/test/unit/QuoteServiceTests.groovy” is wrong. Remove “/grails-app”
- “This will tell Grails to create a shell /grails-app/test/integration/QuoteService-IntegrationTests.groovy file.” Again remove “/grails-app”
- In Listing 1.17
class QuoteServiceTests extends GrailsUnitTestCase
should beclass QuoteServiceIntegrationTests extends GrailsUnitTestCase
- Listing 1.18 has same issue as Listing 1.17
- The test fails because of difference in case in “quiche”
assertEquals("Real Programmers Don't eat Quiche", staticQuote.content)
should beassertEquals("Real Programmers Don't eat quiche", staticQuote.content)
- “Grails also generates an HTML version of our test results, which you can view by opening /grails-app/test/reports/html/index.html in a web browser.” Remove the “/grails-app”
- In listing 1.22,
render "...
should be replaced byresponse.outputStream << "...
. This is because therender()
method applies the quote.gsp layout to the generated output, which isn’t what we want.