Lines 481-487
subtest 'object.search helper order by embedded columns' => sub {
Link Here
|
481 |
|
481 |
|
482 |
subtest 'objects.find helper' => sub { |
482 |
subtest 'objects.find helper' => sub { |
483 |
|
483 |
|
484 |
plan tests => 6; |
484 |
plan tests => 9; |
485 |
|
485 |
|
486 |
my $t = Test::Mojo->new; |
486 |
my $t = Test::Mojo->new; |
487 |
|
487 |
|
Lines 498-503
subtest 'objects.find helper' => sub {
Link Here
|
498 |
->status_is(200) |
498 |
->status_is(200) |
499 |
->json_is( $city_2->to_api ); |
499 |
->json_is( $city_2->to_api ); |
500 |
|
500 |
|
|
|
501 |
# Remove the city |
502 |
my $city_2_id = $city_2->id; |
503 |
$city_2->delete; |
504 |
$t->get_ok( '/cities/' . $city_2_id ) |
505 |
->status_is(200) |
506 |
->json_is( undef ); |
507 |
|
501 |
$schema->storage->txn_rollback; |
508 |
$schema->storage->txn_rollback; |
502 |
}; |
509 |
}; |
503 |
|
510 |
|
504 |
- |
|
|