Move role tests to a separate file and skip with Moose pre 1.99
[gitmo/MooseX-FollowPBP.git] / t / basic.t
index 8f6c1ca..c14d332 100644 (file)
--- a/t/basic.t
+++ b/t/basic.t
@@ -64,21 +64,4 @@ ok( ! PBP3->can('set_thing2'), 'PBP3->set_thing2 does not exist' );
 ok( !PBP4->can('get_bare'), 'is => bare attribute is respected' );
 ok( !PBP4->can('set_bare'), 'is => bare attribute is respected' );
 
-{
-    package PBP::Role;
-    use Moose::Role;
-    use MooseX::FollowPBP;
-    has foo => (is => 'rw');
-}
-
-{
-    package PBP::WithRole;
-    use Moose;
-    with 'PBP::Role';
-}
-
-ok( PBP::WithRole->can('get_foo'), "works in a role" );
-ok( PBP::WithRole->can('set_foo'), "works in a role" );
-ok( !PBP::WithRole->can('foo'), "works in a role" );
-
 done_testing();