X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_attributes%2F008_attribute_type_unions.t;h=f2ad61018eee273f9f92972f284e3f205d974617;hb=ad3882b59692e4e4eab99f9b183c941e6f63d3bd;hp=95ce5f9a877f03b6ea4e31dc32f7fb7bf73a413c;hpb=7ff5653479c2bfc0794635f7fbade9bfe7bb2381;p=gitmo%2FMoose.git diff --git a/t/020_attributes/008_attribute_type_unions.t b/t/020_attributes/008_attribute_type_unions.t index 95ce5f9..f2ad610 100644 --- a/t/020_attributes/008_attribute_type_unions.t +++ b/t/020_attributes/008_attribute_type_unions.t @@ -3,15 +3,14 @@ use strict; use warnings; -use Test::More tests => 18; +use Test::More; use Test::Exception; - { package Foo; use Moose; - + has 'bar' => (is => 'rw', isa => 'ArrayRef | HashRef'); } @@ -55,7 +54,7 @@ dies_ok { { package Bar; use Moose; - + has 'baz' => (is => 'rw', isa => 'Str | CodeRef'); } @@ -96,4 +95,4 @@ dies_ok { Bar->new(baz => {}) } '... didnt create a new Bar with baz as a HASH ref'; - +done_testing;