- Added REST and RPC update_bulk tests
- Removed useless RPC index action
- Fixed static configured page attribute not being used (RT#56226)
+- Test use_json_boolean true
2.002002 2010-08-03 14:40:50 Europe/Vienna
update_allows => ['title', 'position', { cd => ['*'] }],
page => 1,
count => 10,
+ use_json_boolean => 1,
);
1;
$mech->request($req);
cmp_ok( $mech->status, '==', 400, 'Attempt to update three nonexisting tracks fails' );
my $response = JSON::Any->Load( $mech->content);
- is( $response->{success}, JSON::Any::false, 'success property returns false' );
+ is( $response->{success}, JSON::Any::false, 'success property returns unquoted false' );
like( $response->{messages}->[0], qr/No object found for id/, 'correct message returned' );
}
$mech->request($req);
cmp_ok( $mech->status, '==', 400, 'Attempt to update three nonexisting tracks fails' );
my $response = JSON::Any->Load( $mech->content);
- is( $response->{success}, JSON::Any::false, 'success property returns false' );
+ is( $response->{success}, 'false', 'success property returns quoted false' );
like( $response->{messages}->[0], qr/No object found for id/, 'correct message returned' );
}