From 14cf4b8fdd69b31c8030b6530bbe07fd1df5b25a Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 4 Mar 2019 17:22:15 +0100 Subject: Use rocket_contrib's JsonValue as return type. --- tests/room_tests.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/room_tests.rs b/tests/room_tests.rs index 7415fd5..c91519d 100644 --- a/tests/room_tests.rs +++ b/tests/room_tests.rs @@ -17,11 +17,13 @@ */ use ramaskrik; +use rocket::http::ContentType; #[test] fn getting_rooms_from_api() { let server = ramaskrik::build_rocket().unwrap(); let client = rocket::local::Client::new(server).unwrap(); let mut response = client.get("/rooms").dispatch(); + assert_eq!(response.content_type(), Some(ContentType::JSON)); assert_eq!(response.body_string(), Some("[]".into())); } -- cgit v1.2.3