diff --git a/tests/cuke/step_definitions/db-fixture.rb b/tests/cuke/step_definitions/db-fixture.rb index 6a85a1dfd..7e358ec9b 100644 --- a/tests/cuke/step_definitions/db-fixture.rb +++ b/tests/cuke/step_definitions/db-fixture.rb @@ -1,3 +1,5 @@ # Reset database -$browser.goto $baseURL + 'dev/tests/endsession' -$browser.goto $baseURL + 'dev/tests/startsession?fixture=sapphire/tests/Bare.yml&flush=1' +if $baseURL and $browser then + $browser.goto $baseURL + 'dev/tests/endsession' + $browser.goto $baseURL + 'dev/tests/startsession?fixture=sapphire/tests/Bare.yml&flush=1' +end \ No newline at end of file