From ea51802fec77986012536a5b1df2c121c7b32358 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Apr 2010 03:20:39 +0000 Subject: [PATCH] MINOR: Ensure that cuke can work with --dry-run (from r94819) (from r96772) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102401 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/cuke/step_definitions/db-fixture.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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