Am Mo 28. Sep 2015, 03:12:55, SREZIC schrieb:
Show quoted text
That appears to be a consequence of Mojo::JSON 6.22 using JSON::PP boolean constants and it appears to be solely a problem of the tests, not with the module itself.
But at first glance I´m not totally convinced that it´s really the tests in Mojolicious::Plugin::ReCAPTCHAv2 which need fixing.
The failing tests are written like this:
$t
->post_ok( '/test' => {} => form => { 'g-recaptcha-response' => 'foo' } )
->json_is( '/verify' => 0 );
And then I get:
# Failed test 'exact match for JSON Pointer "/verify"'
# at t/10-basic.t line 48.
# Structures begin differing at:
# $got = 0
# $expected = '0'
I´d say the test did not expect "'0'"...
I could change the test to use
->json_like( '/verify' => qr/0/ );
but I want to think about the problem a bit more before I upload a new version.