Lines 46-52
subtest 'list() tests' => sub {
Link Here
|
46 |
$schema->storage->txn_rollback; |
46 |
$schema->storage->txn_rollback; |
47 |
|
47 |
|
48 |
subtest 'librarian access tests' => sub { |
48 |
subtest 'librarian access tests' => sub { |
49 |
plan tests => 13; |
49 |
plan tests => 16; |
50 |
|
50 |
|
51 |
$schema->storage->txn_begin; |
51 |
$schema->storage->txn_begin; |
52 |
|
52 |
|
Lines 67-72
subtest 'list() tests' => sub {
Link Here
|
67 |
->status_is(200) |
67 |
->status_is(200) |
68 |
->json_is('/0/cardnumber' => $librarian->cardnumber); |
68 |
->json_is('/0/cardnumber' => $librarian->cardnumber); |
69 |
|
69 |
|
|
|
70 |
$t->get_ok("//$userid:$password@/api/v1/patrons?q={\"cardnumber\":\"" . $librarian->cardnumber ."\"}") |
71 |
->status_is(200) |
72 |
->json_is('/0/cardnumber' => $librarian->cardnumber); |
73 |
|
70 |
$t->get_ok("//$userid:$password@/api/v1/patrons?address2=" . $librarian->address2) |
74 |
$t->get_ok("//$userid:$password@/api/v1/patrons?address2=" . $librarian->address2) |
71 |
->status_is(200) |
75 |
->status_is(200) |
72 |
->json_is('/0/address2' => $librarian->address2); |
76 |
->json_is('/0/address2' => $librarian->address2); |
73 |
- |
|
|