diff --git a/src/testFixtures/groovy/grails/plugin/geb/ContainerGebSpec.groovy b/src/testFixtures/groovy/grails/plugin/geb/ContainerGebSpec.groovy index 9eb0259..98dc535 100644 --- a/src/testFixtures/groovy/grails/plugin/geb/ContainerGebSpec.groovy +++ b/src/testFixtures/groovy/grails/plugin/geb/ContainerGebSpec.groovy @@ -72,7 +72,7 @@ abstract class ContainerGebSpec extends Specification implements ManagedGebTest, @PackageScope void initialize() { - if (webDriverContainer) { + if (initialized) { return } @@ -158,4 +158,8 @@ abstract class ContainerGebSpec extends Specification implements ManagedGebTest, private boolean isHostNameChanged() { return hostNameFromContainer != DEFAULT_HOSTNAME_FROM_CONTAINER } + + private boolean isInitialized() { + webDriverContainer == null + } } \ No newline at end of file