Commits

haarg  committed e79f486

test application hook when applying multiple roles

  • Participants
  • Parent commits fda978a

Comments (0)

Files changed (1)

File t/20hook_appl.t

 }
 
 {
+	package Local::EmptyRole;
+	use Moo::Role;
+}
+
+{
 	package Local::OtherRole;
 	use Moo::Role;
 	with 'Local::Role'; # "Local::Role applied to Local::OtherRole"
 	1;
 }
 
+{
+	package Local::OtherClass;
+	use Moo;
+	with 'Local::Role', 'Local::EmptyRole';
+}
+
 is_deeply(
 	\@output,
 	[
 		"Local::OtherRole Local::Role",
 		"Local::Class Local::OtherRole",
+		"Local::OtherClass Local::Role",
 	],
 );