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
pull/2035/head
N Jain 10 years ago committed by Andy Wilkinson
parent 468db03aef
commit a8af254765

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

Loading…
Cancel
Save