aboutsummaryrefslogtreecommitdiffstats
path: root/tests/apitests.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-04-08 16:25:54 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-04-08 16:25:54 +0200
commit30f65b62e84fcd9975643716d61fa21bc8495291 (patch)
tree28839044ab6acac3d94f0b0280c036b16d3bfddf /tests/apitests.rs
parentad0e585abed7a189b6117e9187c9afff809d1414 (diff)
downloadramaskrik-social-30f65b62e84fcd9975643716d61fa21bc8495291.tar.gz
ramaskrik-social-30f65b62e84fcd9975643716d61fa21bc8495291.tar.bz2
ramaskrik-social-30f65b62e84fcd9975643716d61fa21bc8495291.zip
Import model structs to main models module.
Diffstat (limited to 'tests/apitests.rs')
-rw-r--r--tests/apitests.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/apitests.rs b/tests/apitests.rs
index 54b7961..a488c33 100644
--- a/tests/apitests.rs
+++ b/tests/apitests.rs
@@ -17,11 +17,7 @@
*/
use ramaskrik;
-use ramaskrik::models::{
- film::{ Film, NewFilm },
- room::Room,
- screening,
-};
+use ramaskrik::models::{Film, NewFilm, Room, Screening};
use lazy_static::lazy_static;
use rocket::http::ContentType;
@@ -136,7 +132,7 @@ fn getting_screenings_from_api() {
let mut response = client.get("/screenings").dispatch();
assert_eq!(response.content_type(), Some(ContentType::JSON));
- let fetched_screenings: Vec<(screening::Screening, Film, Room)> =
+ let fetched_screenings: Vec<(Screening, Film, Room)> =
serde_json::from_str(&response.body_string().unwrap()).unwrap();
assert_eq!(fetched_screenings.len(), 1);