X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frole-duplication.t;h=b44629c7dccc353f4f51ede4e3dee2cc1a3d418f;hb=d2af51c61ea875770e562beb4373c9908e29b9bd;hp=124909d55da832bead98814c8ae8a12582af31a2;hpb=c36f405341b2c749dc925f7b0aff40c54891c942;p=gitmo%2FRole-Tiny.git diff --git a/t/role-duplication.t b/t/role-duplication.t index 124909d..b44629c 100644 --- a/t/role-duplication.t +++ b/t/role-duplication.t @@ -5,10 +5,10 @@ use Test::More; { package Role; use Role::Tiny; sub foo { my $orig = shift; 1 + $orig->(@_) }; - package Base; sub foo { 1 } + package BaseClass; sub foo { 1 } } -eval { Role::Tiny->create_class_with_roles('Base', qw(Role Role)); }; +eval { Role::Tiny->create_class_with_roles('BaseClass', qw(Role Role)); }; like $@, qr/Duplicated/, 'duplicate role detected';