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