Browse Source

Don't redeclare

Andy Baugh 2 years ago
parent
commit
022b8a2297
1 changed files with 1 additions and 1 deletions
  1. 1 1
      t/Trog-Config.t

+ 1 - 1
t/Trog-Config.t

@@ -22,7 +22,7 @@ subtest 'theme_dir' => sub {
     is( Trog::Config::theme_dir(), "themes/zippy", "Caching works" ); # would die if this did not
     is( Trog::Config::theme_dir(), "themes/zippy", "Caching works" ); # would die if this did not
     unlink "config/default.cfg"; # The mocker ain't terribly smart. Maybe a bug?
     unlink "config/default.cfg"; # The mocker ain't terribly smart. Maybe a bug?
     undef $mocked_cfg;
     undef $mocked_cfg;
-    my $mocked_cfg = Test::MockFile->file( "config/default.cfg", "[general]\ntheme=dippy\n" );
+    $mocked_cfg = Test::MockFile->file( "config/default.cfg", "[general]\ntheme=dippy\n" );
     push @mocked_dirs, Test::MockFile->dir( "www/themes/dippy" );
     push @mocked_dirs, Test::MockFile->dir( "www/themes/dippy" );
     is( Trog::Config::theme_dir(1), "", "Got expected theme_dir when directory not existent and cache popped" );
     is( Trog::Config::theme_dir(1), "", "Got expected theme_dir when directory not existent and cache popped" );
 };
 };