Closed mohawk2 closed 4 years ago
Cool!
to_hash
is actually tested indirectly in the "old plugin version compatibility" test file: https://github.com/dotandimet/Mojo-Feed/blob/master/t/24-plugin.t
Maybe we can extend this to test possible mutations via the attribute accessors (this will help shake out where we need to add error handling).
This is the start of the work discussed on IRC earlier. Before I started that, I thought it valuable to test what is already there, since there weren't any tests of the
to_hash
method currently. TheTest::Deep
is to be able to ignore theguid
key, because there is no way to supply one to an Atom feed.Arguably the
guid
should go away, since it is adequately represented by theid
?