Bugzilla – Attachment 61195 Details for
Bug 18290
Fix t/db_dependent/Koha/Object.t, Mojo::JSON::Bool is a JSON::PP::Boolean :)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18290 - Fix t/db_dependent/Koha/Object.t, Mojo::JSON::Bool is a JSON::PP::Boolean :)
Bug-18290---Fix-tdbdependentKohaObjectt-MojoJSONBo.patch (text/plain), 1.36 KB, created by
Olli-Antti Kivilahti
on 2017-03-17 06:23:01 UTC
(
hide
)
Description:
Bug 18290 - Fix t/db_dependent/Koha/Object.t, Mojo::JSON::Bool is a JSON::PP::Boolean :)
Filename:
MIME Type:
Creator:
Olli-Antti Kivilahti
Created:
2017-03-17 06:23:01 UTC
Size:
1.36 KB
patch
obsolete
>From 32032fba2732d72dbe05a75abc828d535cbb9def Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Fri, 17 Mar 2017 08:09:05 +0200 >Subject: [PATCH] Bug 18290 - Fix t/db_dependent/Koha/Object.t, > Mojo::JSON::Bool is a JSON::PP::Boolean :) > >Mojolicious no longer returns Mojo::JSON::Bool-objects but JSON::PP instead. >Which might be pretty smart. >--- > t/db_dependent/Koha/Object.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Object.t b/t/db_dependent/Koha/Object.t >index d812d37..6458c27 100755 >--- a/t/db_dependent/Koha/Object.t >+++ b/t/db_dependent/Koha/Object.t >@@ -157,10 +157,10 @@ subtest 'TO_JSON tests' => sub { > my $lost = $patron->TO_JSON()->{lost}; > my $gonenoaddress = $patron->TO_JSON->{gonenoaddress}; > >- ok( $lost->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' ); >+ ok( $lost->isa('JSON::PP::Boolean'), 'Boolean attribute type is correct' ); > is( $lost, 1, 'Boolean attribute value is correct (true)' ); > >- ok( $gonenoaddress->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' ); >+ ok( $gonenoaddress->isa('JSON::PP::Boolean'), 'Boolean attribute type is correct' ); > is( $gonenoaddress, 0, 'Boolean attribute value is correct (false)' ); > > ok( !isvstring($patron->borrowernumber), 'Integer values are not coded as strings' ); >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18290
:
61195
|
66370