completed the tests to use .pl config only torbjorn mirror/torbjorn
Torbjørn Lindahl [Mon, 13 Jan 2014 18:45:30 +0000 (19:45 +0100)]
t/25-setting-config-file.t
t/lib/TestApp2.pm

index 8d228f9..7799937 100644 (file)
@@ -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" );
 
index ab6c914..92b88e7 100644 (file)
@@ -9,7 +9,7 @@ use Catalyst qw/ConfigLoader/;
 
 __PACKAGE__->config( "Plugin::ConfigLoader",
                      {
-                         file => __PACKAGE__->path_to( "customconfig.conf" )
+                         file => __PACKAGE__->path_to( "customconfig.pl" )
                      }
                  );