From: Shawn M Moore Date: Mon, 22 Dec 2008 04:26:23 +0000 (+0000) Subject: Rename this class to avoid a type collision X-Git-Tag: 0.19~76 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bcc5080bdc8c8b3edfbb3dd6af0b65224074043f;p=gitmo%2FMouse.git Rename this class to avoid a type collision --- 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';