Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 050_metaclasses / 017_use_base_of_moose.t
index 9076fa8..607a067 100644 (file)
@@ -1,28 +1,22 @@
 #!/usr/bin/env perl
+# This is automatically generated by author/import-moose-test.pl.
+# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
+use t::lib::MooseCompat;
 
 use strict;
 use warnings;
-use Test::More;
-
-BEGIN{
-    if($] < 5.008){
-        plan skip_all => "segv happens on 5.6.2";
-    }
-}
 
-use Test::More tests => 4;
+use Test::More;
 use Test::Exception;
 
 {
     package NoOpTrait;
     use Mouse::Role;
-
-
 }
 
 {
     package Parent;
-    use Mouse "-traits" => 'NoOpTrait';
+    use Mouse -traits => 'NoOpTrait';
 
     has attr => (
         is  => 'rw',
@@ -34,12 +28,15 @@ use Test::Exception;
     package Child;
     use base 'Parent';
 }
+
 is(Child->meta->name, 'Child', "correct metaclass name");
+
 my $child = Child->new(attr => "ibute");
 ok($child, "constructor works");
 
-
 is($child->attr, "ibute", "getter inherited properly");
 
 $child->attr("ition");
 is($child->attr, "ition", "setter inherited properly");
+
+done_testing;