diff --git a/t/Asset/Wobject/GalleryAlbum/edit.t b/t/Asset/Wobject/GalleryAlbum/edit.t index d01f454bb..afa259421 100644 --- a/t/Asset/Wobject/GalleryAlbum/edit.t +++ b/t/Asset/Wobject/GalleryAlbum/edit.t @@ -20,7 +20,6 @@ use Test::More; use WebGUI::Test; # Must use this before any other WebGUI modules use WebGUI::Session; use Test::Deep; -use Test::WWW::Mechanize; #---------------------------------------------------------------------------- # Init diff --git a/t/Asset/Wobject/GalleryAlbum/rss.t b/t/Asset/Wobject/GalleryAlbum/rss.t index cf5a97217..4fe0e1653 100644 --- a/t/Asset/Wobject/GalleryAlbum/rss.t +++ b/t/Asset/Wobject/GalleryAlbum/rss.t @@ -65,12 +65,22 @@ for my $i ( 0 .. 5 ) { $versionTag->commit; +my ( $mech ); + #---------------------------------------------------------------------------- # Tests + +if ( !eval { require Test::WWW::Mechanize; 1; } ) { + plan skip_all => 'Cannot load Test::WWW::Mechanize. Will not test.'; +} +$mech = Test::WWW::Mechanize->new; +$mech->get( $baseUrl ); +if ( !$mech->success ) { + plan skip_all => "Cannot load URL '$baseUrl'. Will not test."; +} + plan tests => 2; -use_ok("Test::WWW::Mechanize"); -my $mech; #---------------------------------------------------------------------------- # Test www_viewRss