From: gfx Date: Mon, 6 Sep 2010 04:31:03 +0000 (+0900) Subject: 'alias' and 'excludes' in with() are deprecated X-Git-Tag: 0.65~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=2bb76549d42baff2a0dd3c5be170d2850ecf0855 'alias' and 'excludes' in with() are deprecated --- diff --git a/t/001_mouse/807-multi-roles.t b/t/001_mouse/807-multi-roles.t index 671e7d5..4d0a3b0 100644 --- a/t/001_mouse/807-multi-roles.t +++ b/t/001_mouse/807-multi-roles.t @@ -26,7 +26,7 @@ use Test::More tests => 3; package MyApp; use Mouse; with ('Requires', 'Method'); - with ('Method2' => { alias => { bar => 'baz' } }); + with ('Method2' => { -alias => { bar => 'baz' } }); } my $m = MyApp->new; diff --git a/t/030_roles/019_build.t b/t/030_roles/019_build.t index c520f81..684443a 100755 --- a/t/030_roles/019_build.t +++ b/t/030_roles/019_build.t @@ -41,7 +41,7 @@ do { use Mouse; ::stderr_is { - with 'TestRole' => { excludes => 'BUILD' }; + with 'TestRole' => { -excludes => 'BUILD' }; } ''; sub BUILD { push @CALLS, 'ExplicitClassWithBUILD::BUILD' } diff --git a/t/lib/Role/Child.pm b/t/lib/Role/Child.pm index 323eaa1..1ee02b1 100644 --- a/t/lib/Role/Child.pm +++ b/t/lib/Role/Child.pm @@ -1,7 +1,7 @@ package Role::Child; use Mouse::Role; -with 'Role::Parent' => { alias => { meth1 => 'aliased_meth1', } }; +with 'Role::Parent' => { -alias => { meth1 => 'aliased_meth1', } }; sub meth1 { }