From: Shawn M Moore Date: Wed, 26 Nov 2008 02:27:36 +0000 (+0000) Subject: Use single quotes for consistency X-Git-Tag: 0.62~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5b5b7c12d9bce711c5902f44dd93690c48f45033;p=gitmo%2FMoose.git Use single quotes for consistency --- diff --git a/lib/Moose/Meta/Role/Application/RoleSummation.pm b/lib/Moose/Meta/Role/Application/RoleSummation.pm index c443e3d..be1265c 100644 --- a/lib/Moose/Meta/Role/Application/RoleSummation.pm +++ b/lib/Moose/Meta/Role/Application/RoleSummation.pm @@ -79,7 +79,7 @@ sub check_role_exclusions { next unless $role->does_role($excluded); my @excluding = @{ $excluded_roles{$excluded} }; - Moose->throw_error(sprintf 'Conflict detected: Role%s %s exclude%s role "%s"', (@excluding == 1 ? '' : 's'), join(', ', @excluding), (@excluding == 1 ? 's' : ''), $excluded); + Moose->throw_error(sprintf "Conflict detected: Role%s %s exclude%s role '%s'", (@excluding == 1 ? '' : 's'), join(', ', @excluding), (@excluding == 1 ? 's' : ''), $excluded); } } diff --git a/t/030_roles/006_role_exclusion.t b/t/030_roles/006_role_exclusion.t index 30c2d0e..041e013 100644 --- a/t/030_roles/006_role_exclusion.t +++ b/t/030_roles/006_role_exclusion.t @@ -62,7 +62,7 @@ the roles into the same class ::throws_ok { with 'Molecule::Organic', 'Molecule::Inorganic'; - } qr/Conflict detected: Role Molecule::Organic excludes role "Molecule::Inorganic"/, + } qr/Conflict detected: Role Molecule::Organic excludes role 'Molecule::Inorganic'/, '... adding the role w/ excluded role conflict dies okay'; package My::Test3;