Fix layout issue in upload test and change to using pure json
This commit is contained in:
parent
6ed0be4801
commit
2c718e4337
1 changed files with 5 additions and 6 deletions
|
@ -201,8 +201,7 @@ $json = {
|
||||||
organisation_id => 1,
|
organisation_id => 1,
|
||||||
session_key => $session_key,
|
session_key => $session_key,
|
||||||
};
|
};
|
||||||
$upload = {json => Mojo::JSON::encode_json($json)};
|
$t->post_ok('/api/upload' => json => $json )
|
||||||
$t->post_ok('/api/upload' => form => $upload )
|
|
||||||
->status_is(200)
|
->status_is(200)
|
||||||
->or($framework->dump_error)
|
->or($framework->dump_error)
|
||||||
->json_is('/success', Mojo::JSON->true)
|
->json_is('/success', Mojo::JSON->true)
|
||||||
|
|
Reference in a new issue