Add a test for shortcodes with arg

This commit is contained in:
Vincent Prouillet 2017-10-23 10:57:39 +02:00
parent ca5bdc8f3c
commit bddf2b53fd
3 changed files with 4 additions and 0 deletions

View file

@ -8,4 +8,6 @@ Same filename but different path
{{ basic() }}
{{ pirate(name="Bob") }}

View file

@ -0,0 +1 @@
Arrrh {{ name }}

View file

@ -109,6 +109,7 @@ fn can_build_site_without_live_reload() {
assert!(file_exists!(public, "posts/python/index.html"));
// Shortcodes work
assert!(file_contains!(public, "posts/python/index.html", "Basic shortcode"));
assert!(file_contains!(public, "posts/python/index.html", "Arrrh Bob"));
assert!(file_exists!(public, "posts/tutorials/devops/nix/index.html"));
assert!(file_exists!(public, "posts/with-assets/index.html"));
assert!(file_exists!(public, "posts/no-section/simple/index.html"));