make tests pass with Mojolicious 4.0
Merge pull request #2 from reneeb/master

Make plugin compatible for Mojolicious 4.0