Lines 470-476
subtest 'object.search helper order by embedded columns' => sub {
Link Here
|
470 |
|
470 |
|
471 |
subtest 'objects.find helper' => sub { |
471 |
subtest 'objects.find helper' => sub { |
472 |
|
472 |
|
473 |
plan tests => 6; |
473 |
plan tests => 9; |
474 |
|
474 |
|
475 |
my $t = Test::Mojo->new; |
475 |
my $t = Test::Mojo->new; |
476 |
|
476 |
|
Lines 487-492
subtest 'objects.find helper' => sub {
Link Here
|
487 |
->status_is(200) |
487 |
->status_is(200) |
488 |
->json_is( $city_2->to_api ); |
488 |
->json_is( $city_2->to_api ); |
489 |
|
489 |
|
|
|
490 |
# Remove the city |
491 |
my $city_2_id = $city_2->id; |
492 |
$city_2->delete; |
493 |
$t->get_ok( '/cities/' . $city_2_id ) |
494 |
->status_is(200) |
495 |
->json_is( undef ); |
496 |
|
490 |
$schema->storage->txn_rollback; |
497 |
$schema->storage->txn_rollback; |
491 |
}; |
498 |
}; |
492 |
|
499 |
|
493 |
- |
|
|