X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F030_roles%2F021_role_composite_exclusion.t;h=5d16a798bc814395ae0fa8ba851f123a6006cad5;hb=1808c2dab86d0317d10f70d3a7a923e97daf54bb;hp=f12cb085a2e59bd8ae95bb886d8838dc98f898e3;hpb=6b584f6c4dc1c2108c1bc233caec49627b2cce04;p=gitmo%2FMoose.git diff --git a/t/030_roles/021_role_composite_exclusion.t b/t/030_roles/021_role_composite_exclusion.t index f12cb08..5d16a79 100644 --- a/t/030_roles/021_role_composite_exclusion.t +++ b/t/030_roles/021_role_composite_exclusion.t @@ -29,8 +29,8 @@ use Moose::Meta::Role::Composite; with 'Role::Foo'; } -ok(Role::ExcludesFoo->meta->excludes_role('Role::Foo'), '... got the right exclusions'); -ok(Role::DoesExcludesFoo->meta->excludes_role('Role::Foo'), '... got the right exclusions'); +ok(Role::ExcludesFoo->meta->excludes_role('Role::Foo'), 'got the right exclusions'); +ok(Role::DoesExcludesFoo->meta->excludes_role('Role::Foo'), 'got the right exclusions'); # test simple exclusion dies_ok { @@ -42,7 +42,7 @@ dies_ok { ] ) ); -} '... this fails as expected'; +} 'this fails as expected'; # test no conflicts { @@ -54,11 +54,11 @@ dies_ok { ); isa_ok($c, 'Moose::Meta::Role::Composite'); - is($c->name, 'Role::Foo|Role::Bar', '... got the composite role name'); + is($c->name, 'Role::Foo|Role::Bar', 'got the composite role name'); lives_ok { Moose::Meta::Role::Application::RoleSummation->new->apply($c); - } '... this lives as expected'; + } 'this lives as expected'; } # test no conflicts w/exclusion @@ -71,13 +71,13 @@ dies_ok { ); isa_ok($c, 'Moose::Meta::Role::Composite'); - is($c->name, 'Role::Bar|Role::ExcludesFoo', '... got the composite role name'); + is($c->name, 'Role::Bar|Role::ExcludesFoo', 'got the composite role name'); lives_ok { Moose::Meta::Role::Application::RoleSummation->new->apply($c); - } '... this lives as expected'; + } 'this lives as expected'; - is_deeply([$c->get_excluded_roles_list], ['Role::Foo'], '... has excluded roles'); + is_deeply([$c->get_excluded_roles_list], ['Role::Foo'], 'has excluded roles'); } @@ -92,7 +92,7 @@ dies_ok { ) ); -} '... this fails as expected'; +} 'this fails as expected'; # test conflict with an "inherited" exclusion of an "inherited" role dies_ok { @@ -104,6 +104,6 @@ dies_ok { ] ) ); -} '... this fails as expected'; +} 'this fails as expected';