rsrchboy / Test-Moose-More

More tools for testing Moose packages
http://metacpan.org/release/Test-Moose-More/
Other
3 stars 8 forks source link

check attribute value #1

Open xenoterracide opened 12 years ago

xenoterracide commented 12 years ago

I'd like to have something like

is_accessor_ok $obj, 'method', 'val'; # ok 1 My::Obj->accessor

the value here is not in having to write the message just to check to see that the value is what I expect.

Also it could double as can_ok, meaning it'd first check the can and report a can failure, and not throw an exception on that