summaryrefslogtreecommitdiffstats
path: root/rust/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 14:49:25 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 14:49:25 -0700
commitb9b79a7b7385ba18654d51bc2ca1b5d07f191d0e (patch)
tree3308d41627f67ed5f988016671e57e9b47a992e2 /rust/tests
parent2aef3c1dbf75ae374862a12e6d6a680d9ce78720 (diff)
downloadfatcat-b9b79a7b7385ba18654d51bc2ca1b5d07f191d0e.tar.gz
fatcat-b9b79a7b7385ba18654d51bc2ca1b5d07f191d0e.zip
finish fatcat-api => fatcat-api-spec refactor
Diffstat (limited to 'rust/tests')
-rw-r--r--rust/tests/test_api_server.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs
index 54639228..ebc74b67 100644
--- a/rust/tests/test_api_server.rs
+++ b/rust/tests/test_api_server.rs
@@ -1,6 +1,6 @@
extern crate diesel;
extern crate fatcat;
-extern crate fatcat_api;
+extern crate fatcat_api_spec;
extern crate iron;
extern crate iron_test;
extern crate uuid;
@@ -16,12 +16,12 @@ use uuid::Uuid;
fn setup() -> (
Headers,
- fatcat_api::router::Router,
+ fatcat_api_spec::router::Router,
diesel::r2d2::PooledConnection<diesel::r2d2::ConnectionManager<diesel::PgConnection>>,
) {
let server = fatcat::test_server().unwrap();
let conn = server.db_pool.get().expect("db_pool error");
- let router = fatcat_api::router(server);
+ let router = fatcat_api_spec::router(server);
let mut headers = Headers::new();
let mime: Mime = "application/json".parse().unwrap();
headers.set(ContentType(mime));