aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/inheritance.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-10 07:38:34 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-10 09:27:33 +0200
commit1e0ee705a8e295ebddd31a472990133d34ad3465 (patch)
tree203bc040015dee5a69592c531de4741ac6a03f91 /testing/tests/inheritance.rs
parentffc74a1775f6e4bbd8cd161fd68d814ec981f3c2 (diff)
downloadaskama-1e0ee705a8e295ebddd31a472990133d34ad3465.tar.gz
askama-1e0ee705a8e295ebddd31a472990133d34ad3465.tar.bz2
askama-1e0ee705a8e295ebddd31a472990133d34ad3465.zip
Propagate format errors and rename `render_to()` to `render_into()`
Diffstat (limited to '')
-rw-r--r--testing/tests/inheritance.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/inheritance.rs b/testing/tests/inheritance.rs
index 5993cd6..ca267e1 100644
--- a/testing/tests/inheritance.rs
+++ b/testing/tests/inheritance.rs
@@ -18,11 +18,11 @@ struct ChildTemplate<'a> {
#[test]
fn test_use_base_directly() {
let t = BaseTemplate { title: "Foo" };
- assert_eq!(t.render(), "Foo\n\nCopyright 2017");
+ assert_eq!(t.render().unwrap(), "Foo\n\nCopyright 2017");
}
#[test]
fn test_simple_extends() {
let t = ChildTemplate { _parent: BaseTemplate { title: "Bar" } };
- assert_eq!(t.render(), "Bar\n(Bar) Content goes here\nCopyright 2017");
+ assert_eq!(t.render().unwrap(), "Bar\n(Bar) Content goes here\nCopyright 2017");
}