Subject: | assert_nonempty fails on blessed ref |
assert_nonempty checks to see if the given passed reference is an array or hash reference before checking inside it to see if it has any elements. However, given a blessed reference, assert_nonempty fails because it checks ref($ref) instead of looking deeper than the blessing.
assert_nonempty should be able to assert that a blessed ref is not empty.