mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
added test for 405 code on wrong method
This commit is contained in:
parent
4e5d43696b
commit
88904e4716
@ -408,6 +408,17 @@ TEST(http_method)
|
||||
ASSERT_NOTEQUAL("get", res.body);
|
||||
}
|
||||
|
||||
{
|
||||
request req;
|
||||
response res;
|
||||
|
||||
req.url = "/get_only";
|
||||
req.method = "POST"_method;
|
||||
app.handle(req, res);
|
||||
|
||||
ASSERT_EQUAL(405, res.code);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TEST(server_handling_error_request)
|
||||
|
Loading…
Reference in New Issue
Block a user