remove unnecessary Path::Class dep from test
Graham Knop [Sun, 26 Jul 2020 14:19:31 +0000 (16:19 +0200)]
Makefile.PL
t/24-mock-shortappname.t

index a550790..00140fd 100644 (file)
@@ -12,7 +12,6 @@ my %META = (
     test => {
       requires => {
         'Test::More' => 0,
-        'Path::Class' => 0,
       },
     },
     runtime => {
index 2759d2a..4538e8e 100644 (file)
@@ -13,17 +13,16 @@ BEGIN {
     package QX;
     use strict;
     use warnings;
-    use Path::Class ();
 
     use base 'Catalyst::Plugin::ConfigLoader';
 
     sub config { {} }
-    sub path_to { shift; Path::Class::dir('/home/foo/QX-0.9.5/' . shift); }
+    sub path_to { shift; '/home/foo/QX-0.9.5/' . shift; }
 }
 
 my $app = bless {}, 'QX';
 my ($path, $extension) = $app->get_config_path;
-is $path, Path::Class::dir( '/home/foo/QX-0.9.5/qx' )->stringify;
+is $path, '/home/foo/QX-0.9.5/qx';
 is $extension, undef;
 
 done_testing;