feat(log): rudimentary logging
- Changed route `subscribe` into `subscriptions`
This commit is contained in:
@@ -11,7 +11,7 @@ async fn subscribe_returns_a_200_for_valid_form_data() {
|
||||
let body = "name=le%20test&email=le_test%40gmail.com";
|
||||
|
||||
let response = client
|
||||
.post(&format!("{}/subscribe", &test_app.address))
|
||||
.post(&format!("{}/subscriptions", &test_app.address))
|
||||
.header("Content-Type", "application/x-www-form-urlencoded")
|
||||
.body(body)
|
||||
.send()
|
||||
@@ -44,7 +44,7 @@ async fn subscribe_returns_a_400_when_data_is_missing() {
|
||||
|
||||
for (invalid_body, error_message) in test_cases {
|
||||
let response = client
|
||||
.post(&format!("{}/subscribe", &test_app.address))
|
||||
.post(&format!("{}/subscriptions", &test_app.address))
|
||||
.header("Content-Type", "application/x-www-form-urlencoded")
|
||||
.body(invalid_body)
|
||||
.send()
|
||||
|
Reference in New Issue
Block a user