Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
tighten up some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Nov 30, 2020
1 parent 9ee8a2c commit 6a33979
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t/integration/crud/build.t
Expand Up @@ -42,7 +42,7 @@ $t->post_ok('/build', json => {
})
->status_is(400)
->json_schema_is('RequestValidationError')
->json_cmp_deeply('/details', superbagof(superhashof({ error => 'multiple subschemas are valid: 0, 1' })));
->json_cmp_deeply('/details', [ superhashof({ error => 'multiple subschemas are valid: 0, 1' }) ]);

$t->post_ok('/build', json => { name => 'my first build', admins => [ { user_id => create_uuid_str() } ] })
->status_is(409)
Expand Down
2 changes: 1 addition & 1 deletion t/integration/crud/organization.t
Expand Up @@ -40,7 +40,7 @@ $t->post_ok('/organization', json => {
})
->status_is(400)
->json_schema_is('RequestValidationError')
->json_cmp_deeply('/details', superbagof(superhashof({ error => 'multiple subschemas are valid: 0, 1' })));
->json_cmp_deeply('/details', [ superhashof({ error => 'multiple subschemas are valid: 0, 1' }) ]);

$t->post_ok('/organization', json => { name => 'my first organization', admins => [ { user_id => create_uuid_str() } ] })
->status_is(409)
Expand Down
2 changes: 1 addition & 1 deletion t/integration/users.t
Expand Up @@ -31,7 +31,7 @@ $build2->create_related('organization_build_roles', { organization_id => $organi
$t->post_ok('/login', json => { email => 'a', password => 'b' })
->status_is(400)
->json_schema_is('RequestValidationError')
->json_cmp_deeply('/details', superbagof(superhashof({ error => 'not an email' })));
->json_cmp_deeply('/details', [ superhashof({ error => 'not an email' }) ]);

$t->post_ok('/login', json => { email => 'foo@bar.com' })
->status_is(400)
Expand Down

0 comments on commit 6a33979

Please sign in to comment.