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
14 reader => 'read_attr',
15 writer => 'write_attr',
19 my $object = Class->new;
22 local $TODO = 'requires some refactoring to implement';
25 !$object->can('rw_attr'),
26 "no rw_attr method because wasn't 'is' ro or rw"
28 ok($object->can('read_attr'), "did get a reader");
29 ok($object->can('write_attr'), "did get a writer");
31 # eliminate these eval{} when out of TODO
32 eval { $object->write_attr(2); };
35 eval { $object->read_attr },
37 "writing to the object worked",