From f4a6e54d951725428aef71f0d81ab9f1e438d53c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 2 Mar 2011 22:32:12 -0600 Subject: more with_immutable --- t/35-no-service.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/35-no-service.t') diff --git a/t/35-no-service.t b/t/35-no-service.t index c6a9226..aeb4c48 100644 --- a/t/35-no-service.t +++ b/t/35-no-service.t @@ -3,6 +3,7 @@ use strict; use warnings; use Test::More; use Test::Fatal; +use Test::Moose; { package Bar; @@ -40,6 +41,7 @@ use Test::Fatal; ); } +with_immutable { { my $foo = Foo->new; ok($foo->has_service($_), "has service $_") for qw(foo baz); @@ -68,5 +70,6 @@ use Test::Fatal; "can't depend on attrs with no service" ); } +} 'Foo'; done_testing; -- cgit v1.2.3