aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-24 20:47:24 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-24 20:47:24 +0200
commit201a2cb2a282e9ffa0e8326f425bad88a5f4f47a (patch)
tree17ec06799a13ac39863ada5ffb8a1ce67f4880eb
parent5f0ff4726ddbd38a895ee29402caabc5b10ad893 (diff)
downloadaskama-201a2cb2a282e9ffa0e8326f425bad88a5f4f47a.tar.gz
askama-201a2cb2a282e9ffa0e8326f425bad88a5f4f47a.tar.bz2
askama-201a2cb2a282e9ffa0e8326f425bad88a5f4f47a.zip
Simplify Rocket test slightly
Diffstat (limited to '')
-rw-r--r--testing/tests/iron.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/tests/iron.rs b/testing/tests/iron.rs
index 51c7b8d..6f8868f 100644
--- a/testing/tests/iron.rs
+++ b/testing/tests/iron.rs
@@ -16,5 +16,5 @@ fn test_iron() {
let rsp = Response::with((status::Ok, HelloTemplate { name: "world" }));
let mut buf = Vec::new();
let _ = rsp.body.unwrap().write_body(&mut buf);
- assert_eq!(buf, "Hello, world!".as_bytes());
+ assert_eq!(buf, b"Hello, world!");
}