Skip to content

Commit

Permalink
[#689] Added a second unit test to 93-init-plugin.t to ensure that th…
Browse files Browse the repository at this point in the history
…e perl plugin isn't also loading in addition to the config.yaml initialization
  • Loading branch information
jayallen committed Feb 5, 2011
1 parent 420ea26 commit a87ba82
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/93-init_plugin.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use lib 't/lib', 'lib', 'extlib';
use Data::Dumper;
use Test::Output qw( :functions );
use Test::Warn;
use Test::More tests => 10;
use Test::More tests => 11;

{
no warnings 'once';
Expand Down Expand Up @@ -71,6 +71,13 @@ sub main {
}
};
}

require MT::Template::Context;
my $ctx = MT::Template::Context->new;
my $b = MT::Builder->new;
my $result = $b->build( $ctx, $b->compile( $ctx, '<mt:IDontExist>' ));
is( (! defined $result and $b->errstr =~ m{Unknown tag found}), 1,
'IDontExist tag from ignored perl plugin' );
}

sub test_plugin_loaded {
Expand Down

0 comments on commit a87ba82

Please sign in to comment.