Regenerate test files
[gitmo/Mouse.git] / t / 030_roles / 002_role.t
old mode 100755 (executable)
new mode 100644 (file)
index 577c2ef..ddba337
@@ -1,9 +1,13 @@
 #!/usr/bin/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 tests => 40;
+use Test::More;
+$TODO = q{Mouse is not yet completed};
 use Test::Exception;
 
 =pod
@@ -47,14 +51,13 @@ words, should 'has_method' return true for them?
 
 my $foo_role = FooRole->meta;
 isa_ok($foo_role, 'Mouse::Meta::Role');
-#isa_ok($foo_role, 'Class::MOP::Module');
+isa_ok($foo_role, 'Mouse::Meta::Module');
 
 is($foo_role->name, 'FooRole', '... got the right name of FooRole');
 is($foo_role->version, '0.01', '... got the right version of FooRole');
 
 # methods ...
 
-
 ok($foo_role->has_method('foo'), '... FooRole has the foo method');
 is($foo_role->get_method('foo')->body, \&FooRole::foo, '... FooRole got the foo method');
 
@@ -82,8 +85,6 @@ is_deeply(
 
 ok($foo_role->has_attribute('bar'), '... FooRole does have the bar attribute');
 
-{
-local $TODO = 'definition_context is not yet implemented';
 my $bar_attr = $foo_role->get_attribute('bar');
 is($bar_attr->{is}, 'rw',
    'bar attribute is rw');
@@ -103,7 +104,6 @@ is(ref($baz_attr->{definition_context}), 'HASH',
    'bar\'s definition context is a hash');
 is($baz_attr->{definition_context}->{package}, 'FooRole',
    'baz was defined in FooRole');
-} # end of TODO (definition_context)
 
 # method modifiers
 
@@ -157,3 +157,4 @@ is_deeply(
     [ 'bling', 'fling' ],
     '... got the right list of override method modifiers');
 
+done_testing;