Add a test for shortcodes with arg
This commit is contained in:
parent
ca5bdc8f3c
commit
bddf2b53fd
|
@ -8,4 +8,6 @@ Same filename but different path
|
|||
|
||||
{{ basic() }}
|
||||
|
||||
{{ pirate(name="Bob") }}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Arrrh {{ name }}
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue