respect is => bare
[gitmo/MooseX-FollowPBP.git] / t / basic.t
index 9e0e5d5..c14d332 100644 (file)
--- a/t/basic.t
+++ b/t/basic.t
@@ -34,6 +34,15 @@ use Test::More;
     has 'thing2' => ( is => 'rw', writer => 'set_it' );
 }
 
+{
+    package PBP4;
+
+    use Moose;
+    use MooseX::FollowPBP;
+
+    has 'bare' => ( is => 'bare' );
+}
+
 
 ok( ! Standard->can('get_thing'), 'Standard->get_thing() does not exist' );
 ok( ! Standard->can('set_thing'), 'Standard->set_thing() does not exist' );
@@ -52,4 +61,7 @@ ok( ! PBP3->can('set_thing'), 'PBP3->set_thing does not exist' );
 ok( ! PBP3->can('get_thing2'), 'PBP3->get_thing2 does not exist' );
 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' );
+
 done_testing();