Add a test for attribute conflict when composing one role into another
[gitmo/Moose.git] / t / 100_bugs / 025_universal_methods_wrappable.t
index e7c4acb..8eea71a 100644 (file)
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 
 use Test::Exception;
-use Test::More tests => 2;
+use Test::More;
 
 {
 
@@ -18,13 +18,14 @@ use Test::More tests => 2;
     package Foo;
     use Moose;
 
- TODO:
-    {
-        local $TODO = 'UNIVERSAL methods should be wrappable';
+    use Test::More; # for $TODO
 
-        lives_ok { with 'FakeBar' } 'applied role';
+    local $TODO = 'UNIVERSAL methods should be wrappable';
 
-        my $foo = Foo->new;
-        isa_ok $foo, 'Bar';
-    }
+    ::lives_ok { with 'FakeBar' } 'applied role';
+
+    my $foo = Foo->new;
+    ::isa_ok $foo, 'Bar';
 }
+
+done_testing;