Fix integration test.

This commit is contained in:
Luca Palmieri 2020-12-11 21:35:16 +00:00
parent 9dd3b0590a
commit 6db241eef6

View file

@ -143,7 +143,7 @@ async fn subscribe_returns_a_400_when_data_is_missing() {
}
#[actix_rt::test]
async fn subscribe_returns_a_200_when_fields_are_present_but_empty() {
async fn subscribe_returns_a_400_when_fields_are_present_but_invalid() {
// Arrange
let app = spawn_app().await;
let client = reqwest::Client::new();
@ -165,9 +165,9 @@ async fn subscribe_returns_a_200_when_fields_are_present_but_empty() {
// Assert
assert_eq!(
200,
400,
response.status().as_u16(),
"The API did not return a 200 OK when the payload was {}.",
"The API did not return a 400 Bad Request when the payload was {}.",
description
);
}