aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-04-08 15:10:00 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-04-08 15:10:00 +0200
commit5ab5f490bc7199709fbc03d51bf6131e92269fdc (patch)
tree51c9fd6f3032fa1ed5c02d4383371339902928fb /tests
parenta7c734d39512385177426bcb2131726906ce2fff (diff)
downloadramaskrik-social-5ab5f490bc7199709fbc03d51bf6131e92269fdc.tar.gz
ramaskrik-social-5ab5f490bc7199709fbc03d51bf6131e92269fdc.tar.bz2
ramaskrik-social-5ab5f490bc7199709fbc03d51bf6131e92269fdc.zip
Fix warnings from test runs.
Diffstat (limited to 'tests')
-rw-r--r--tests/apitests.rs6
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));