summaryrefslogtreecommitdiffstats
path: root/t/04-block.t
diff options
context:
space:
mode:
Diffstat (limited to 't/04-block.t')
-rw-r--r--t/04-block.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/04-block.t b/t/04-block.t
index c0f9bad..3d31d6d 100644
--- a/t/04-block.t
+++ b/t/04-block.t
@@ -2,6 +2,7 @@
use strict;
use warnings;
use Test::More;
+use Test::Moose;
{
package Foo;
@@ -31,9 +32,9 @@ use Test::More;
);
}
-{
+with_immutable {
my $foo = Foo->new;
is($foo->baz, 'BARFOO', "self is passed properly");
-}
+} 'Foo';
done_testing;