From 84abac7f2bb9f61a85225579be01bd76b4b99649 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 2 Feb 2017 18:48:34 -0800 Subject: [PATCH] Unignore template test. Upstream fix landed. --- contrib/src/templates/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/src/templates/mod.rs b/contrib/src/templates/mod.rs index 50ac9893..c7169a75 100644 --- a/contrib/src/templates/mod.rs +++ b/contrib/src/templates/mod.rs @@ -133,14 +133,16 @@ impl Template { /// /// # Example /// - /// ```rust,ignore + /// ```rust /// use std::collections::HashMap; /// use rocket_contrib::Template; /// /// // Create a `context`. Here, just an empty `HashMap`. /// let mut context = HashMap::new(); + /// + /// # context.insert("test", "test"); /// let template = Template::render("index", &context); - /// ``` + /// # assert_eq!(template.to_string(), ""); pub fn render(name: S, context: &T) -> Template where S: AsRef, T: Serialize {