Should I manually verify the image it is supposed to create, then take a hash of that image and compare the hash from the same process during testing?
Sounds good to me.
If I do it this way, I will need to use a hashing module and I'm reluctant to create a dependency that is only used in the tests.
Digest::MD5 is a core module and has been since 5.7.3. You should have no qualms about relying on that one being present. Still declare it as a test dependency just in case for the 5.6.0 hold-outs.
🦛
In reply to Re: Testing image output
by hippo
in thread Testing image output
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |