From: Brian Cassidy Date: Thu, 13 Aug 2009 12:44:37 +0000 (+0000) Subject: require Catalyst 5.8 for tests that use ctx_request() X-Git-Tag: v0.27~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fc74bcdb98d4e28e1f83a3a746fad8863525cd97;hp=32c7af257f98dbcbfdb73dbaa97c6648e021cef0;p=catagits%2FCatalyst-Plugin-ConfigLoader.git require Catalyst 5.8 for tests that use ctx_request() --- diff --git a/t/22-suffix_env.t b/t/22-suffix_env.t index 3d47bd6..f9e73f4 100644 --- a/t/22-suffix_env.t +++ b/t/22-suffix_env.t @@ -4,9 +4,14 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; -use Test::More tests => 3; +use Test::More; BEGIN { + eval { require Catalyst; Catalyst->VERSION( '5.80001' ); }; + + plan skip_all => 'Catalyst 5.80001 required' if $@; + plan tests => 3; + $ENV{ TESTAPP_CONFIG_LOCAL_SUFFIX } = 'test'; use_ok 'Catalyst::Test', 'TestApp'; } diff --git a/t/23-path_env.t b/t/23-path_env.t index 8c4b6ed..8035842 100644 --- a/t/23-path_env.t +++ b/t/23-path_env.t @@ -4,9 +4,14 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; -use Test::More tests => 3; +use Test::More; BEGIN { + eval { require Catalyst; Catalyst->VERSION( '5.80001' ); }; + + plan skip_all => 'Catalyst 5.80001 required' if $@; + plan tests => 3; + $ENV{ TESTAPP_CONFIG } = 'test.perl'; use_ok 'Catalyst::Test', 'TestApp'; }