From bd6578e71c08a813bcfcfccbee6d902f5162c852 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 3 Aug 2018 18:32:30 +0200 Subject: [PATCH] Fix failing test --- components/templates/src/global_fns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/templates/src/global_fns.rs b/components/templates/src/global_fns.rs index 9ca217d8..52aa362f 100644 --- a/components/templates/src/global_fns.rs +++ b/components/templates/src/global_fns.rs @@ -337,7 +337,7 @@ mod tests { let mut args = HashMap::new(); args.insert("kind".to_string(), to_value("tags").unwrap()); args.insert("name".to_string(), to_value("Programming").unwrap()); - assert_eq!(static_fn(args).unwrap(), "http://a-website.com/tags/prog-amming/"); + assert_eq!(static_fn(args).unwrap(), to_value("http://a-website.com/tags/programming/").unwrap()); // and errors if it can't find it let mut args = HashMap::new(); args.insert("kind".to_string(), to_value("tags").unwrap());