From: Torbjørn Lindahl Date: Mon, 13 Jan 2014 18:45:30 +0000 (+0100) Subject: completed the tests to use .pl config only X-Git-Tag: 0.33~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-ConfigLoader.git;a=commitdiff_plain;h=refs%2Fheads%2Ftorbjorn completed the tests to use .pl config only --- diff --git a/t/25-setting-config-file.t b/t/25-setting-config-file.t index 8d228f9..7799937 100644 --- a/t/25-setting-config-file.t +++ b/t/25-setting-config-file.t @@ -16,7 +16,7 @@ BEGIN { eval { require Catalyst; Catalyst->VERSION( '5.80001' ); }; plan skip_all => 'Catalyst 5.80001 required' if $@; - plan tests => 22; + plan tests => 18; use Catalyst::Test (); @@ -84,8 +84,6 @@ BEGIN { }; - is( get( '/appconfig/test3_conf1' ), "a_value", "custom config var1 set" ); - is( get( '/appconfig/test3_conf2' ), "a_value", "custom config var2 set" ); is( get( '/appconfig/test3_conf3' ), "a_value", "custom config var3 set" ); is( get( '/appconfig/test3_conf4' ), "", "custom config var4 not set" ); @@ -109,8 +107,6 @@ BEGIN { }; - is( get( '/appconfig/test4_conf1' ), "a_value", "custom config var1 set" ); - is( get( '/appconfig/test4_conf2' ), "a_value", "custom config var2 set" ); is( get( '/appconfig/test4_conf3' ), "a_value", "custom config var3 set" ); is( get( '/appconfig/test4_conf4' ), "", "custom config var4 not set" ); diff --git a/t/lib/TestApp2.pm b/t/lib/TestApp2.pm index ab6c914..92b88e7 100644 --- a/t/lib/TestApp2.pm +++ b/t/lib/TestApp2.pm @@ -9,7 +9,7 @@ use Catalyst qw/ConfigLoader/; __PACKAGE__->config( "Plugin::ConfigLoader", { - file => __PACKAGE__->path_to( "customconfig.conf" ) + file => __PACKAGE__->path_to( "customconfig.pl" ) } );