Make sure attr conflict error includes attr name
[gitmo/Moose.git] / t / 050_metaclasses / 001_custom_attr_meta_with_roles.t
index e22cf9b..dc2a473 100644 (file)
@@ -3,24 +3,20 @@
 use strict;
 use warnings;
 
-use Test::More tests => 4;
-use Test::Exception;
+use Test::More;
 
-BEGIN {
-    use_ok('Moose');
-}
 
 {
     package My::Custom::Meta::Attr;
     use Moose;
-    
+
     extends 'Moose::Meta::Attribute';
 }
 
 {
     package My::Fancy::Role;
     use Moose::Role;
-    
+
     has 'bling_bling' => (
         metaclass => 'My::Custom::Meta::Attr',
         is        => 'rw',
@@ -31,7 +27,7 @@ BEGIN {
 {
     package My::Class;
     use Moose;
-    
+
     with 'My::Fancy::Role';
 }
 
@@ -42,4 +38,4 @@ ok($c->meta->has_attribute('bling_bling'), '... got the attribute');
 
 isa_ok($c->meta->get_attribute('bling_bling'), 'My::Custom::Meta::Attr');
 
-
+done_testing;