From ba722671b4791524384010705bef0aaa83c22c0b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 5 Sep 2019 19:04:34 -0700 Subject: rename rust crate fatcat-api-spec -> fatcat-openapi --- rust/tests/helpers.rs | 6 +++--- rust/tests/test_refs.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/tests') 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(); diff --git a/rust/tests/test_refs.rs b/rust/tests/test_refs.rs index 28dfd6b8..ced89828 100644 --- a/rust/tests/test_refs.rs +++ b/rust/tests/test_refs.rs @@ -5,7 +5,7 @@ use fatcat::editing::{accept_editgroup, make_edit_context}; use fatcat::entity_crud::{EntityCrud, HideFlags}; use fatcat::identifiers::FatcatId; use fatcat::server; -use fatcat_api_spec::models::*; +use fatcat_openapi::models::*; use std::str::FromStr; use uuid::Uuid; -- cgit v1.2.3