diff options
Diffstat (limited to 't/inc-hook.t')
-rw-r--r-- | t/inc-hook.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/inc-hook.t b/t/inc-hook.t new file mode 100644 index 0000000..a8deabb --- /dev/null +++ b/t/inc-hook.t @@ -0,0 +1,12 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; +use Test::Fatal; +use lib 't/lib'; + +unshift @INC, sub { "some regex" =~ /match/; undef }; + +is(exception { require Package::Stash }, undef, "works with an \@INC hook"); + +done_testing; |