X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F030_roles%2F004_role_composition_errors.t;h=b2c58f42e5ab221afe788b9c1e32ccb2be521f39;hb=948cd1899aaa1b6e1d53b77346c609f332c3e1a3;hp=7e8aba6d26eefeb663a00cad576055e070a77ea4;hpb=d939e016559e9796651f35533c8bd8dfc5ccdfc3;p=gitmo%2FMoose.git diff --git a/t/030_roles/004_role_composition_errors.t b/t/030_roles/004_role_composition_errors.t index 7e8aba6..b2c58f4 100644 --- a/t/030_roles/004_role_composition_errors.t +++ b/t/030_roles/004_role_composition_errors.t @@ -3,11 +3,10 @@ use strict; use warnings; -use Test::More tests => 14; +use Test::More; use Test::Exception; - { package Foo::Role; @@ -140,9 +139,8 @@ is_deeply( has 'meth2' => ( is => 'ro' ); ::throws_ok { with('Quux::Role') } - qr/\Q'Quux::Role' requires the methods 'meth3' and 'meth4' to be implemented by 'Quux::Class3'\E\n - \Q'Quux::Role' requires the methods 'meth1' and 'meth2' to be implemented by 'Quux::Class3' but the method is only an attribute accessor/x, - 'exception mentions all the require methods that are accessors at once, as well as missing methods'; + qr/'Quux::Role' requires the methods 'meth3' and 'meth4' to be implemented by 'Quux::Class3'/, + 'exception mentions all the missing methods at once, but not the accessors'; } { @@ -153,7 +151,8 @@ is_deeply( has 'meth2' => ( is => 'ro' ); ::throws_ok { with('Quux::Role') } - qr/\Q'Quux::Role' requires the methods 'meth3' and 'meth4' to be implemented by 'Quux::Class4'\E\n - \Q'Quux::Role' requires the method 'meth2' to be implemented by 'Quux::Class4' but the method is only an attribute accessor/x, + qr/'Quux::Role' requires the methods 'meth3' and 'meth4' to be implemented by 'Quux::Class4'/, 'exception mentions all the require methods that are accessors at once, as well as missing methods, but not the one that exists'; } + +done_testing;