X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=trunk%2Ft%2Faggregate%2Funit_utils_env_value.t;fp=trunk%2Ft%2Faggregate%2Funit_utils_env_value.t;h=0000000000000000000000000000000000000000;hb=2757db2c7c600c8a0b8e2b4366f38c97804c2844;hp=5dd92cfe3cba0f197e3db0e2d17dfbf9ce379965;hpb=ceae39c522c2145a453188867dd581062795ecee;p=catagits%2FCatalyst-Runtime.git diff --git a/trunk/t/aggregate/unit_utils_env_value.t b/trunk/t/aggregate/unit_utils_env_value.t deleted file mode 100644 index 5dd92cf..0000000 --- a/trunk/t/aggregate/unit_utils_env_value.t +++ /dev/null @@ -1,44 +0,0 @@ -use strict; -use warnings; - -use Test::More tests => 4; - -use Catalyst::Utils; - -############################################################################## -### No env vars defined -############################################################################## -{ - ok( !Catalyst::Utils::env_value( 'MyApp', 'Key' ), - 'No env values defined returns false' - ); -} - -############################################################################## -### App env var defined -############################################################################## -{ - $ENV{'MYAPP2_KEY'} = 'Env value 2'; - is( Catalyst::Utils::env_value( 'MyApp2', 'Key' ), - 'Env value 2', 'Got the right value from the application var' ); -} - -############################################################################## -### Catalyst env var defined -############################################################################## -{ - $ENV{'CATALYST_KEY'} = 'Env value 3'; - is( Catalyst::Utils::env_value( 'MyApp3', 'Key' ), - 'Env value 3', 'Got the right value from the catalyst var' ); -} - -############################################################################## -### Catalyst and Application env vars defined -############################################################################## -{ - $ENV{'CATALYST_KEY'} = 'Env value bad'; - $ENV{'MYAPP4_KEY'} = 'Env value 4'; - is( Catalyst::Utils::env_value( 'MyApp4', 'Key' ), - 'Env value 4', 'Got the right value from the application var' ); -} -