Skip Menu |

This queue is for tickets about the Data-Printer-Filter-JSON CPAN distribution.

Report information
The Basics
Id: 103994
Status: open
Priority: 0/
Queue: Data-Printer-Filter-JSON

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.3
Fixed in: (no value)



Subject: t/106-filter_Mojo_JSON.t test fails
Test log: Can't locate object method "new" via package "Mojo::JSON" at t/106-filter_Mojo_JSON.t line 13, <DATA> line 2231. t/106-filter_Mojo_JSON.t .... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run I suspect a recent change in Mojo::JSON is causing the problem.
Subject: patch.patch
diff --git a/t/106-filter_Mojo_JSON.t b/t/106-filter_Mojo_JSON.t index 34a3f7e..8401980 100644 --- a/t/106-filter_Mojo_JSON.t +++ b/t/106-filter_Mojo_JSON.t @@ -10,7 +10,7 @@ SKIP: { }; skip 'Needs Mojo::JSON', 1 if $@; - my $dump = p( Mojo::JSON->new->decode(input) ); + my $dump = p( Mojo::JSON::decode_json(input) ); is( $dump, expected, "JSON:SL, live" ); }