summaryrefslogtreecommitdiffstats
path: root/rust/tests/helpers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-05 19:04:34 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-05 19:04:34 -0700
commitba722671b4791524384010705bef0aaa83c22c0b (patch)
tree9d546b87a36cfa521d8a64ea032948416c9e6314 /rust/tests/helpers.rs
parenta65dfc914517376b5ededb82e594236c5d61c721 (diff)
downloadfatcat-ba722671b4791524384010705bef0aaa83c22c0b.tar.gz
fatcat-ba722671b4791524384010705bef0aaa83c22c0b.zip
rename rust crate fatcat-api-spec -> fatcat-openapi
Diffstat (limited to 'rust/tests/helpers.rs')
-rw-r--r--rust/tests/helpers.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/tests/helpers.rs b/rust/tests/helpers.rs
index d0b0b6d3..918dbe5c 100644
--- a/rust/tests/helpers.rs
+++ b/rust/tests/helpers.rs
@@ -2,7 +2,7 @@ use fatcat::auth::MacaroonAuthMiddleware;
use fatcat::editing_crud::EditgroupCrud;
use fatcat::identifiers::FatcatId;
use fatcat::server;
-use fatcat_api_spec::models::Editgroup;
+use fatcat_openapi::models::Editgroup;
use iron::headers::{Authorization, Bearer, ContentType};
use iron::mime::Mime;
use iron::{status, Chain, Headers};
@@ -28,9 +28,9 @@ pub fn setup_http() -> (
.create_token(admin_id, None)
.unwrap();
- let router = fatcat_api_spec::router(server);
+ let router = fatcat_openapi::router(server);
let mut chain = Chain::new(router);
- chain.link_before(fatcat_api_spec::server::ExtractAuthData);
+ chain.link_before(fatcat_openapi::server::ExtractAuthData);
chain.link_before(MacaroonAuthMiddleware::new());
let mut headers = Headers::new();
let mime: Mime = "application/json".parse().unwrap();