Fix description of test file to be tests.groovy

Corrected the documentation to refer to file as tests.groovy, rather
than test.groovy. Updated cope snippet as tests.groovy should expect
"Hello World!" rather than "Hello World".

Closes gh-1593
This commit is contained in:
N Jain 2014-09-20 16:56:19 -07:00 committed by Andy Wilkinson
parent 468db03aef
commit a8af254765

View File

@ -220,7 +220,7 @@ In this example, `tests.groovy` contains JUnit `@Test` methods or Spock `Specifi
classes. All the common framework annotations and static methods should be available to
you without having to `import` them.
Here is the `test.groovy` file that we used above (with a JUnit test):
Here is the `tests.groovy` file that we used above (with a JUnit test):
[source,groovy,indent=0]
----
@ -228,7 +228,7 @@ Here is the `test.groovy` file that we used above (with a JUnit test):
@Test
void homeSaysHello() {
assertEquals("Hello World", new WebApplication().home())
assertEquals("Hello World!", new WebApplication().home())
}
}