X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic.t;h=3b6532be8918797858fe4427348b4b7975a99634;hb=08ec520a68363e3442e430c8699a630b49b52001;hp=3df6729f04594ec4d940dcb15714179abe8e7cd4;hpb=5f9f886db7092f25f877863adda9cf3ae29d9eee;p=gitmo%2FMooseX-SemiAffordanceAccessor.git diff --git a/t/basic.t b/t/basic.t index 3df6729..3b6532b 100644 --- a/t/basic.t +++ b/t/basic.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More tests => 19; +use Test::More tests => 21; { @@ -45,6 +45,15 @@ use Test::More tests => 19; has 'thing2' => ( is => 'rw', writer => 'set_it' ); } +{ + package SAA4; + + use Moose; + use MooseX::SemiAffordanceAccessor; + + has bare => ( is => 'bare' ); +} + ok( Standard->can('thing'), 'Standard->thing() exists' ); ok( ! Standard->can('set_thing'), 'Standard->set_thing() does not exist' ); @@ -68,3 +77,6 @@ ok( ! SAA3->can('set_thing'), 'SAA3->set_thing does not exist' ); ok( SAA3->can('thing2'), 'SAA3->thing2 exists' ); ok( ! SAA3->can('set_thing2'), 'SAA3->set_thing2 does not exist' ); ok( SAA3->can('set_it'), 'SAA3->set_it does exist' ); + +ok( ! SAA4->can('bare'), 'SAA4->bare does not exist' ); +ok( ! SAA4->can('set_bare'), 'SAA4->set_bare does not exist' );