From 06f919c57dfc917e50e6858100cfbe3a1b57a1be Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 21 Feb 2011 01:53:08 -0600 Subject: make sure i'm testing immutability too --- t/31-auto-deref.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/31-auto-deref.t') diff --git a/t/31-auto-deref.t b/t/31-auto-deref.t index c86fffd..57719b8 100644 --- a/t/31-auto-deref.t +++ b/t/31-auto-deref.t @@ -2,6 +2,7 @@ use strict; use warnings; use Test::More; +use Test::Moose; { package Foo; @@ -23,6 +24,7 @@ use Test::More; ); } +with_immutable { { my $foo = Foo->new; @@ -40,5 +42,6 @@ use Test::More; is_deeply(scalar($foo->bar), {'foo', 'bar'}, "scalar hash"); is_deeply({$foo->foo}, {'foo', 'bar'}, "list hash"); } +} 'Foo'; done_testing; -- cgit v1.2.3-54-g00ecf