Skip to content

Commit

Permalink
use consistant messages for WEBGUI_LIVE tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Sep 9, 2009
1 parent 2948e68 commit f6be074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions t/Asset/Event/edit.t
Expand Up @@ -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

Expand Down
10 changes: 4 additions & 6 deletions t/Workflow/Activity/CalendarUpdateFeeds.t
Expand Up @@ -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;

Expand Down

0 comments on commit f6be074

Please sign in to comment.