[libmoo-perl] 23/43: avoid Base as class name in tests
gregor herrmann
gregoa at debian.org
Mon Dec 26 17:56:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libmoo-perl.
commit e213cd7214f5373e6fc03505b09d478d6a4ca320
Author: Graham Knop <haarg at haarg.org>
Date: Thu Dec 1 20:47:29 2016 -0500
avoid Base as class name in tests
---
t/compose-roles.t | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/compose-roles.t b/t/compose-roles.t
index 7a8dedf..fedf77d 100644
--- a/t/compose-roles.t
+++ b/t/compose-roles.t
@@ -11,7 +11,7 @@ use Test::Fatal;
around foo => sub { my $orig = shift; (__PACKAGE__, $orig->(@_)) };
package Four; use Moo::Role;
around foo => sub { my $orig = shift; (__PACKAGE__, $orig->(@_)) };
- package Base; sub foo { __PACKAGE__ }
+ package BaseClass; sub foo { __PACKAGE__ }
}
foreach my $combo (
@@ -19,12 +19,12 @@ foreach my $combo (
[ qw(Two Four Three) ],
[ qw(One Two) ]
) {
- my $combined = Moo::Role->create_class_with_roles('Base', @$combo);
+ my $combined = Moo::Role->create_class_with_roles('BaseClass', @$combo);
is_deeply(
- [ $combined->foo ], [ reverse(@$combo), 'Base' ],
+ [ $combined->foo ], [ reverse(@$combo), 'BaseClass' ],
"${combined} ok"
);
- my $object = bless({}, 'Base');
+ my $object = bless({}, 'BaseClass');
Moo::Role->apply_roles_to_object($object, @$combo);
is(ref($object), $combined, 'Object reblessed into correct class');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoo-perl.git
More information about the Pkg-perl-cvs-commits
mailing list