This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 369da073334c88c69e59a6df67f940812a729801 Author: Paul King <pa...@asert.com.au> AuthorDate: Thu Mar 7 17:30:35 2019 +1000 tweaks for geb example in testing guide (closes #890) --- src/spec/doc/core-testing-guide.adoc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/spec/doc/core-testing-guide.adoc b/src/spec/doc/core-testing-guide.adoc index 03bbed4..2f67c7a 100644 --- a/src/spec/doc/core-testing-guide.adoc +++ b/src/spec/doc/core-testing-guide.adoc @@ -587,17 +587,15 @@ Although Geb can be used standalone in a Groovy script, in many scenarios it's u frameworks. Geb comes with various base classes that can be used in JUnit 3, 4, TestNG or Spock tests. The base classes are part of additional Geb modules that need to be added as a dependency. -For example, the following `@Grab` dependencies have to be used to run Geb with the Selenium Firefox driver in -JUnit4 tests. The module that is needed for JUnit 3/4 support is `geb-junit`: +For example, the following `@Grab` dependencies can be used to run Geb with the Selenium Firefox driver in +JUnit4 tests. The module that is needed for JUnit 3/4 support is `geb-junit4`: [source,groovy] -------------------------------------------------------------------- -@Grapes([ - @Grab("org.gebish:geb-core:0.9.2"), - @Grab("org.gebish:geb-junit4:0.9.2"), - @Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.26.0"), - @Grab("org.seleniumhq.selenium:selenium-support:2.26.0") -]) +@Grab('org.gebish:geb-core:0.9.2') +@Grab('org.gebish:geb-junit4:0.9.2') +@Grab('org.seleniumhq.selenium:selenium-firefox-driver:2.26.0') +@Grab('org.seleniumhq.selenium:selenium-support:2.26.0') -------------------------------------------------------------------- The central class in Geb is the `geb.Browser` class. As its name implies it is used