Lines 164-172
subtest 'TO_JSON tests' => sub {
Link Here
|
164 |
my $updated_on = $patron->TO_JSON->{updated_on}; |
164 |
my $updated_on = $patron->TO_JSON->{updated_on}; |
165 |
my $lastseen = $patron->TO_JSON->{lastseen}; |
165 |
my $lastseen = $patron->TO_JSON->{lastseen}; |
166 |
|
166 |
|
|
|
167 |
# TODO: |
168 |
# Fix the following test when upgrading Mojolicious - Mojo::JSON::_Bool replaced with |
169 |
# JSON::PP::Boolean |
167 |
ok( $lost->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' ); |
170 |
ok( $lost->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' ); |
168 |
is( $lost, 1, 'Boolean attribute value is correct (true)' ); |
171 |
is( $lost, 1, 'Boolean attribute value is correct (true)' ); |
169 |
|
172 |
|
|
|
173 |
# TODO: |
174 |
# Fix the following test when upgrading Mojolicious - Mojo::JSON::_Bool replaced with |
175 |
# JSON::PP::Boolean |
170 |
ok( $gonenoaddress->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' ); |
176 |
ok( $gonenoaddress->isa('Mojo::JSON::_Bool'), 'Boolean attribute type is correct' ); |
171 |
is( $gonenoaddress, 0, 'Boolean attribute value is correct (false)' ); |
177 |
is( $gonenoaddress, 0, 'Boolean attribute value is correct (false)' ); |
172 |
|
178 |
|
173 |
- |
|
|