From f6be0746f318348a8565cb06c3fc63ca71abd35f Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 8 Sep 2009 22:56:01 -0500 Subject: [PATCH] use consistant messages for WEBGUI_LIVE tests --- t/Asset/Event/edit.t | 5 ++--- t/Workflow/Activity/CalendarUpdateFeeds.t | 10 ++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/t/Asset/Event/edit.t b/t/Asset/Event/edit.t index de716e025..c2e73acbf 100644 --- a/t/Asset/Event/edit.t +++ b/t/Asset/Event/edit.t @@ -74,9 +74,8 @@ if ( !$mech->success ) { plan skip_all => "Cannot load URL '$baseUrl'. Will not test."; } -if ( !$ENV{WEBGUI_LIVE}) { - plan skip_all => "Live tests not enabled"; -} +plan skip_all => 'set WEBGUI_LIVE to enable this test' + unless $ENV{WEBGUI_LIVE}; plan tests => 8; # Increment this number for each test you create diff --git a/t/Workflow/Activity/CalendarUpdateFeeds.t b/t/Workflow/Activity/CalendarUpdateFeeds.t index 7a9591738..7c1392e97 100644 --- a/t/Workflow/Activity/CalendarUpdateFeeds.t +++ b/t/Workflow/Activity/CalendarUpdateFeeds.t @@ -22,12 +22,10 @@ use Test::More; use Test::Deep; use Data::Dumper; -if (!$ENV{WEBGUI_LIVE}) { - plan skip_all => 'No website available'; -} -else { - plan tests => 14; # increment this value for each test you create -} +plan skip_all => 'set WEBGUI_LIVE to enable this test' + unless $ENV{WEBGUI_LIVE}; + +plan tests => 14; # increment this value for each test you create my $session = WebGUI::Test->session;