summaryrefslogtreecommitdiffstats
path: root/t/11-multiple-instantiation.t
diff options
context:
space:
mode:
Diffstat (limited to 't/11-multiple-instantiation.t')
-rw-r--r--t/11-multiple-instantiation.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/11-multiple-instantiation.t b/t/11-multiple-instantiation.t
index 7c5d8a2..c8372c1 100644
--- a/t/11-multiple-instantiation.t
+++ b/t/11-multiple-instantiation.t
@@ -2,6 +2,7 @@
use strict;
use warnings;
use Test::More;
+use Test::Moose;
{
package Bar;
@@ -32,9 +33,11 @@ use Test::More;
);
}
+with_immutable {
my $foo1 = Foo->new;
is($foo1->bar->foo, 'FOO');
my $foo2 = Foo->new(foo => 'BAR');
is($foo2->bar->foo, 'BAR');
+} 'Foo';
done_testing;