|
|
@@ -22,7 +22,7 @@ subtest 'theme_dir' => sub {
|
|
|
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?
|
|
|
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" );
|
|
|
is( Trog::Config::theme_dir(1), "", "Got expected theme_dir when directory not existent and cache popped" );
|
|
|
};
|