summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van de Bruggen <pvande@gmail.com>2010-11-16 07:33:10 -0800
committerPieter van de Bruggen <pvande@gmail.com>2010-11-16 07:33:10 -0800
commit8854760cb9b5984a526126d76826bd00e079242d (patch)
treeb67f3510b63c87a71181bc5e88621ff7f6cd1dd7
parent0155093c28de6f15a6b1b257f7c40950a94679a8 (diff)
downloadmustache-spec-8854760cb9b5984a526126d76826bd00e079242d.tar.gz
Untangling the coment specs.
-rw-r--r--specs/comments.yml45
1 files changed, 33 insertions, 12 deletions
diff --git a/specs/comments.yml b/specs/comments.yml
index 38ab927..6c2ea98 100644
--- a/specs/comments.yml
+++ b/specs/comments.yml
@@ -17,31 +17,52 @@ tests:
1234567890
- name: Standalone
- desc: Standalone comment lines should be entirely removed.
+ desc: All standalone comment lines should be removed.
data: { }
template: |
- 123
+ Begin.
{{! Comment Block! }}
- 4567
+ End.
+ expected: |
+ Begin.
+ End.
+
+ - name: Indented Standalone
+ desc: All standalone comment lines should be removed.
+ data: { }
+ template: |
+ Begin.
{{! Indented Comment Block! }}
- 890
+ End.
expected: |
- 123
- 4567
- 890
+ Begin.
+ End.
- name: Multiline Standalone
- desc: All lines of a standalone multiline comment should be removed.
+ desc: All standalone comment lines should be removed.
+ data: { }
+ template: |
+ Begin.
+ {{!
+ Something's going on here...
+ }}
+ End.
+ expected: |
+ Begin.
+ End.
+
+ - name: Indented Multiline Standalone
+ desc: All standalone comment lines should be removed.
data: { }
template: |
- Hello
+ Begin.
{{!
Something's going on here...
}}
- Goodbye
+ End.
expected: |
- Hello
- Goodbye
+ Begin.
+ End.
- name: Indented Inline
desc: Inline comments should not strip whitespace