View | Details | Raw Unified | Return to bug 17428
Collapse All | Expand All

(-)a/t/db_dependent/api/v1/cities.t (-9 / +1 lines)
Lines 190-203 subtest 'add() tests' => sub { Link Here
190
    $tx->req->cookies(
190
    $tx->req->cookies(
191
        { name => 'CGISESSID', value => $authorized_session_id } );
191
        { name => 'CGISESSID', value => $authorized_session_id } );
192
    $tx->req->env( { REMOTE_ADDR => $remote_address } );
192
    $tx->req->env( { REMOTE_ADDR => $remote_address } );
193
    $t->request_ok($tx)->status_is(400)->json_is(
193
    $t->request_ok($tx)->status_is(400)->json_has('/errors');
194
        "/errors" => [
195
            {
196
                message => "Read-only.",
197
                path    => "/body/cityid"
198
            }
199
        ]
200
    );
201
194
202
    # Authorized attempt to create with existing id
195
    # Authorized attempt to create with existing id
203
    $city->{cityid} = $cityid;
196
    $city->{cityid} = $cityid;
204
- 

Return to bug 17428