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

(-)a/t/db_dependent/api/v1/cities.t (-3 / +6 lines)
Lines 140-146 subtest 'get() tests' => sub { Link Here
140
140
141
subtest 'add() tests' => sub {
141
subtest 'add() tests' => sub {
142
142
143
    plan tests => 17;
143
    plan tests => 18;
144
144
145
    $schema->storage->txn_begin;
145
    $schema->storage->txn_begin;
146
146
Lines 190-196 subtest 'add() tests' => sub { Link Here
190
    $tx->req->env({ REMOTE_ADDR => $remote_address });
190
    $tx->req->env({ REMOTE_ADDR => $remote_address });
191
    my $city_id =
191
    my $city_id =
192
      $t->request_ok($tx)
192
      $t->request_ok($tx)
193
        ->status_is(200)
193
        ->status_is( 201, 'SWAGGER3.2.1' )
194
        ->header_like(
195
            Location => qr|^\/api\/v1\/cities/\d*|,
196
            'SWAGGER3.4.1'
197
            )
194
        ->json_is( '/name'        => $city->{name} )
198
        ->json_is( '/name'        => $city->{name} )
195
        ->json_is( '/state'       => $city->{state} )
199
        ->json_is( '/state'       => $city->{state} )
196
        ->json_is( '/postal_code' => $city->{postal_code} )
200
        ->json_is( '/postal_code' => $city->{postal_code} )
197
- 

Return to bug 23859