summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-01-04 15:48:53 -0600
committerJesse Luehrs <doy@tozt.net>2012-01-04 15:48:53 -0600
commit8536b78f5d3792fe8113c17b0ae213432d5e654c (patch)
tree9628ff84c1f5a8ef48481e4683a4d7fd774bfc42
parent0107882b69ca4c65b99204b181eb21c4586c5822 (diff)
downloadcircular-require-8536b78f5d3792fe8113c17b0ae213432d5e654c.tar.gz
circular-require-8536b78f5d3792fe8113c17b0ae213432d5e654c.zip
clean up the test
-rw-r--r--t/hide_middleman.t11
1 files changed, 6 insertions, 5 deletions
diff --git a/t/hide_middleman.t b/t/hide_middleman.t
index 0fa7514..72fa9c6 100644
--- a/t/hide_middleman.t
+++ b/t/hide_middleman.t
@@ -3,15 +3,16 @@ use strict;
use warnings;
use lib 't/hide_middleman';
use Test::More;
-use Test::Exception;
+
+no circular::require -hide => 'base';
my @warnings;
-$SIG{__WARN__} = sub { push @warnings => @_ };
-# Test passes if you comment this out
-no circular::require -hide => 'base';
+{
+ $SIG{__WARN__} = sub { push @warnings => @_ };
-use_ok( 'Foo' );
+ use_ok( 'Foo' );
+}
is_deeply(
\@warnings,