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:
parent
f20c768d02
commit
74ef0af512
4 changed files with 160 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue