diff options
Diffstat (limited to 'testing/tests/macro.rs')
-rw-r--r-- | testing/tests/macro.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/tests/macro.rs b/testing/tests/macro.rs index 4e43d7c..77e0e59 100644 --- a/testing/tests/macro.rs +++ b/testing/tests/macro.rs @@ -36,3 +36,13 @@ fn test_nested() { let t = NestedTemplate; assert_eq!(t.render().unwrap(), "foo"); } + +#[derive(Template)] +#[template(path = "deep-import-parent.html")] +struct DeepImportTemplate; + +#[test] +fn test_deep_import() { + let t = DeepImportTemplate; + assert_eq!(t.render().unwrap(), "foo"); +} |