aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/room_tests.rs2
1 files changed, 2 insertions, 0 deletions
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()));
}