1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-06-07 14:20:42 +00:00

cors tests

This commit is contained in:
Dominic 2020-05-15 21:19:26 +02:00
parent f20c768d02
commit 74ef0af512
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
4 changed files with 160 additions and 10 deletions

View file

@ -1,8 +1,4 @@
#[cfg(feature = "openapi")]
mod openapi_supports_scope
{
#![cfg(feature = "openapi")]
use gotham::{
router::builder::*,
test::TestServer
@ -29,7 +25,7 @@ fn read_all() -> Raw<&'static [u8]>
#[test]
fn test()
fn openapi_supports_scope()
{
let info = OpenapiInfo {
title: "Test".to_owned(),
@ -54,6 +50,3 @@ fn test()
test_get_response(&server, "http://localhost/bar/baz/foo3", RESPONSE);
test_get_response(&server, "http://localhost/foo4", RESPONSE);
}
} // mod test