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-geb.git


The following commit(s) were added to refs/heads/master by this push:
     new 83b22421 minor refactor
83b22421 is described below

commit 83b22421e23c302bbbefc5e92c9b0884868993b6
Author: Paul King <[email protected]>
AuthorDate: Thu Dec 26 23:15:04 2024 +1000

    minor refactor
---
 .../src/test/groovy/configuration/DriverConfigSpec.groovy           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy 
b/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
index 922ecb33..698e9fa0 100644
--- a/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
+++ b/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
@@ -98,11 +98,11 @@ class DriverConfigSpec extends Specification implements 
InlineConfigurationLoade
 
     @Unroll("driver should be #driverClass.simpleName when environment is 
#env")
     def "environment sensitive driver config"() {
+        given:
+        Assumptions.assumeFalse(env && HeadlessTestSupport.headless)
+
         when:
         configScript(env, """
-            import org.junit.jupiter.api.Assumptions
-            Assumptions.assumeFalse(env && HeadlessTestSupport.headless)
-
             // tag::env_sensitive_driver_config[]
             import org.openqa.selenium.htmlunit.HtmlUnitDriver
 

Reply via email to