diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/apitests.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/apitests.rs b/tests/apitests.rs index 4a74810..58be302 100644 --- a/tests/apitests.rs +++ b/tests/apitests.rs @@ -86,7 +86,7 @@ fn load_fixtures(db: &ramaskrik::db::Connection) { #[test] fn getting_rooms_from_api() { - server_with_db(|server, db| { + server_with_db(|server, _| { let client = rocket::local::Client::new(server).unwrap(); let mut response = client.get("/rooms").dispatch(); assert_eq!(response.content_type(), Some(ContentType::JSON)); @@ -105,7 +105,7 @@ fn getting_rooms_from_api() { #[test] fn getting_films_from_api() { - server_with_db(|server, db| { + server_with_db(|server, _| { let client = rocket::local::Client::new(server).unwrap(); let mut response = client.get("/films").dispatch(); assert_eq!(response.content_type(), Some(ContentType::JSON)); @@ -133,8 +133,6 @@ fn getting_screenings_from_api() { chrono::NaiveTime::from_hms(19, 34, 00), &db).unwrap(); - use ramaskrik::schema::screenings::dsl::*; - let client = rocket::local::Client::new(server).unwrap(); let mut response = client.get("/screenings").dispatch(); assert_eq!(response.content_type(), Some(ContentType::JSON)); |