summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van de Bruggen <pvande@gmail.com>2010-11-13 22:19:10 -0800
committerPieter van de Bruggen <pvande@gmail.com>2010-11-13 22:19:10 -0800
commitaa152614ae5bcb924e9c5481c732f0f45f28ab0a (patch)
tree96d864a8599b591eed0186248a298b1ec8fefd62
parent09d2668a2d80758a9fa7f49797a8973064eca187 (diff)
downloadmustache-spec-aa152614ae5bcb924e9c5481c732f0f45f28ab0a.tar.gz
Untangling two tests; similar changes to follow.
-rw-r--r--specs/sections.yml24
1 files changed, 16 insertions, 8 deletions
diff --git a/specs/sections.yml b/specs/sections.yml
index f4445c3..f034e77 100644
--- a/specs/sections.yml
+++ b/specs/sections.yml
@@ -57,21 +57,29 @@ tests:
desc: Standalone lines should be removed from the template.
data: { boolean: true }
template: |
- | This
+ | This Is
{{#boolean}}
- | Is
+ |
{{/boolean}}
+ | A Line
+ expected: |
+ | This Is
|
+ | A Line
+
+ - name: Indented Standalone Lines
+ desc: Indented standalone lines should be removed from the template.
+ data: { boolean: true }
+ template: |
+ | This Is
{{#boolean}}
- | A
+ |
{{/boolean}}
- | Line
+ | A Line
expected: |
- | This
- | Is
+ | This Is
|
- | A
- | Line
+ | A Line
# Whitespace Insensitivity