4 use Test::More tests => 4;
11 # We want this attr to have a reader and writer with unconventional names,
12 # and not the default rw_attr method. -- rjbs, 2008-12-04
15 reader => 'read_attr',
16 writer => 'write_attr',
20 my $object = Class->new;
23 local $TODO = 'requires some refactoring to implement';
26 !$object->can('rw_attr'),
27 "no rw_attr method because wasn't 'is' ro or rw"
29 ok($object->can('read_attr'), "did get a reader");
30 ok($object->can('write_attr'), "did get a writer");
32 # eliminate these eval{} when out of TODO
33 eval { $object->write_attr(2); };
36 eval { $object->read_attr },
38 "writing to the object worked",