diff options
author | Bastien Orivel <eijebong@bananium.fr> | 2017-08-25 13:28:43 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-25 13:29:34 +0200 |
commit | aeac47cee0e14b9fa38c01082876667f0ec8d874 (patch) | |
tree | 3595cf0832a05d9bd66c467a72189fc09f290dfa /testing/tests/inheritance.rs | |
parent | fc7be3c927d2078a317797c0d5477ad608c4c625 (diff) | |
download | askama-aeac47cee0e14b9fa38c01082876667f0ec8d874.tar.gz askama-aeac47cee0e14b9fa38c01082876667f0ec8d874.tar.bz2 askama-aeac47cee0e14b9fa38c01082876667f0ec8d874.zip |
Add test for parent default block implementations
Diffstat (limited to '')
-rw-r--r-- | testing/tests/inheritance.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/inheritance.rs b/testing/tests/inheritance.rs index ca267e1..e9ea9a2 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().unwrap(), "Foo\n\nCopyright 2017"); + assert_eq!(t.render().unwrap(), "Foo\n\nFoo\nCopyright 2017"); } #[test] fn test_simple_extends() { let t = ChildTemplate { _parent: BaseTemplate { title: "Bar" } }; - assert_eq!(t.render().unwrap(), "Bar\n(Bar) Content goes here\nCopyright 2017"); + assert_eq!(t.render().unwrap(), "Bar\n(Bar) Content goes here\nFoo\nCopyright 2017"); } |