[Bast-commits] r9881 - ironman/IronMan-Web/tags/ironboy/t
idn at dev.catalyst.perl.org
idn at dev.catalyst.perl.org
Sun May 8 08:47:03 GMT 2011
Author: idn
Date: 2011-05-08 08:47:03 +0000 (Sun, 08 May 2011)
New Revision: 9881
Modified:
ironman/IronMan-Web/tags/ironboy/t/01app.t
Log:
Check for environment variable prior to starting tests
Modified: ironman/IronMan-Web/tags/ironboy/t/01app.t
===================================================================
--- ironman/IronMan-Web/tags/ironboy/t/01app.t 2011-05-08 08:40:56 UTC (rev 9880)
+++ ironman/IronMan-Web/tags/ironboy/t/01app.t 2011-05-08 08:47:03 UTC (rev 9881)
@@ -2,6 +2,12 @@
use warnings;
use Test::More tests => 2;
+BEGIN {
+ unless(defined($ENV{CATALYST_CONFIG_LOCAL_SUFFIX})) {
+ BAIL_OUT("CATALYST_CONFIG_LOCAL_SUFFIX environment variable must be defined for testing");
+ }
+}
+
BEGIN { use_ok 'Catalyst::Test', 'IronMan::Web' }
ok( request('/')->is_success, 'Request should succeed' );
More information about the Bast-commits
mailing list