From: Ricardo SIGNES Date: Fri, 5 Dec 2008 02:04:25 +0000 (+0000) Subject: mark 033 todo X-Git-Tag: 0.19~137 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3b10730c3126e3960e9069d9a1925cce94a60797;p=gitmo%2FMouse.git mark 033 todo --- diff --git a/t/033-readwrite.t b/t/033-readwrite.t index a3db4c7..78f45f8 100644 --- a/t/033-readwrite.t +++ b/t/033-readwrite.t @@ -18,11 +18,22 @@ do { my $object = Class->new; -ok(!$object->can('rw_attr'), "no rw_attr method because wasn't 'is' ro or rw"); -ok($object->can('read_attr'), "did get a reader"); -ok($object->can('write_attr'), "did get a writer"); +TODO: { + local $TODO = 'requires some refactoring to implement'; -$object->write_attr(2); + ok( + !$object->can('rw_attr'), + "no rw_attr method because wasn't 'is' ro or rw" + ); + ok($object->can('read_attr'), "did get a reader"); + ok($object->can('write_attr'), "did get a writer"); -is($object->read_attr, 2, "writing to the object worked"); + # eliminate these eval{} when out of TODO + eval { $object->write_attr(2); }; + is( + eval { $object->read_attr }, + 2, + "writing to the object worked", + ); +}