X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F800_shikabased%2F010-isa-or.t;fp=t%2F800_shikabased%2F010-isa-or.t;h=0ede006e93b95c4e2ee7e5910acb549ed9238f4e;hb=bcc5080bdc8c8b3edfbb3dd6af0b65224074043f;hp=0991ab753f240d15e7e71529f85848a853f39a4a;hpb=0033da82b431e8eb16c97218725e0f868ee02b1e;p=gitmo%2FMouse.git diff --git a/t/800_shikabased/010-isa-or.t b/t/800_shikabased/010-isa-or.t index 0991ab7..0ede006 100644 --- a/t/800_shikabased/010-isa-or.t +++ b/t/800_shikabased/010-isa-or.t @@ -72,7 +72,7 @@ is $foo->foo, 'Name', 'foo is Name'; sub new { bless {}, shift }; } { - package Baz; + package Funk; use Mouse; use Mouse::Util::TypeConstraints; @@ -82,10 +82,10 @@ is $foo->foo, 'Name', 'foo is Name'; has 'foo' => ( is => 'rw', isa => 'Type3|KLASS|Undef', coerce => 1 ); } -eval { Baz->new( foo => 'aaa' ) }; +eval { Funk->new( foo => 'aaa' ) }; like $@, qr/Attribute \(foo\) does not pass the type constraint because: Validation failed for 'Type3\|KLASS\|Undef' failed with value aaa/; -my $k = Baz->new; +my $k = Funk->new; ok $k, 'got an object 4'; $k->foo(sub {}); is $k->foo, 'Name', 'foo is Name';