diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-21 01:53:08 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-21 01:53:08 -0600 |
commit | 06f919c57dfc917e50e6858100cfbe3a1b57a1be (patch) | |
tree | 8d269551288407c1cc78c9d7ad7466cf7e9a8bcb /t/30-type-checks.t | |
parent | d1149a69c6121025816d388fadc3861e7407c594 (diff) | |
download | bread-board-declare-06f919c57dfc917e50e6858100cfbe3a1b57a1be.tar.gz bread-board-declare-06f919c57dfc917e50e6858100cfbe3a1b57a1be.zip |
make sure i'm testing immutability too
Diffstat (limited to 't/30-type-checks.t')
-rw-r--r-- | t/30-type-checks.t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/30-type-checks.t b/t/30-type-checks.t index 58f4405..bca6134 100644 --- a/t/30-type-checks.t +++ b/t/30-type-checks.t @@ -3,6 +3,7 @@ use strict; use warnings; use Test::More; use Test::Fatal; +use Test::Moose; { package Foo; @@ -16,11 +17,11 @@ use Test::Fatal; ); } -{ +with_immutable { my $foo = Foo->new; like(exception { $foo->foo }, qr/^Attribute \(foo\) does not pass the type constraint because: Validation failed for 'Ref' with value FOO/, "error when service returns invalid value"); -} +} 'Foo'; done_testing; |