Lines 86-92
subtest 'add() tests' => sub {
Link Here
|
86 |
$t->post_ok( "//$userid:$password@/api/v1/clubs/" |
86 |
$t->post_ok( "//$userid:$password@/api/v1/clubs/" |
87 |
. $club_without_enrollments->id |
87 |
. $club_without_enrollments->id |
88 |
. "/holds" => json => $data ) |
88 |
. "/holds" => json => $data ) |
89 |
->status_is(403) |
89 |
->status_is(409) |
90 |
->json_is( '/error' => "Cannot place a hold on a club without patrons." ); |
90 |
->json_is( '/error' => "Cannot place a hold on a club without patrons." ); |
91 |
|
91 |
|
92 |
$t->post_ok( "//$userid:$password@/api/v1/clubs/" |
92 |
$t->post_ok( "//$userid:$password@/api/v1/clubs/" |
93 |
- |
|
|