|
Lines 262-268
subtest 'add() tests' => sub {
Link Here
|
| 262 |
|
262 |
|
| 263 |
# Authorized attempt to create with existing id |
263 |
# Authorized attempt to create with existing id |
| 264 |
$booking->{booking_id} = $booking_id; |
264 |
$booking->{booking_id} = $booking_id; |
| 265 |
$t->post_ok( "//$userid:$password@/api/v1/bookings" => json => $booking )->status_is(400) |
265 |
$t->post_ok( "//$userid:$password@/api/v1/bookings" => json => $booking )->status_is(409) |
| 266 |
->json_is( "/error" => "Duplicate booking_id" ); |
266 |
->json_is( "/error" => "Duplicate booking_id" ); |
| 267 |
|
267 |
|
| 268 |
# TODO: Test bookings clashes |
268 |
# TODO: Test bookings clashes |
| 269 |
- |
|
|