diff options
-rw-r--r-- | testing/templates/child.html | 2 | ||||
-rw-r--r-- | testing/tests/inheritance.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/templates/child.html b/testing/templates/child.html index 23aed37..15e2fc4 100644 --- a/testing/templates/child.html +++ b/testing/templates/child.html @@ -1,2 +1,2 @@ {% extends "base.html" %} -{% block content %}Content goes here{% endblock %} +{% block content %}({{ title }}) Content goes here{% endblock %} diff --git a/testing/tests/inheritance.rs b/testing/tests/inheritance.rs index 459a5b2..5993cd6 100644 --- a/testing/tests/inheritance.rs +++ b/testing/tests/inheritance.rs @@ -24,5 +24,5 @@ fn test_use_base_directly() { #[test] fn test_simple_extends() { let t = ChildTemplate { _parent: BaseTemplate { title: "Bar" } }; - assert_eq!(t.render(), "Bar\nContent goes here\nCopyright 2017"); + assert_eq!(t.render(), "Bar\n(Bar) Content goes here\nCopyright 2017"); } |