removed duplicate test scenario
This commit is contained in:
parent
43ef9a2e4f
commit
f9ffbe0d6a
|
@ -11,12 +11,11 @@ Liquid tests
|
||||||
- 1 {% include {{ page.include1 }} %}
|
- 1 {% include {{ page.include1 }} %}
|
||||||
- 2 {% include {{ page.include2 | append: '.html' }} %}
|
- 2 {% include {{ page.include2 | append: '.html' }} %}
|
||||||
- 3 {% include {{ page.include3 | downcase | append: '.html' }} %}
|
- 3 {% include {{ page.include3 | downcase | append: '.html' }} %}
|
||||||
- 4 {% include {{ page.include2 | append: '.html' }} %}
|
|
||||||
|
|
||||||
Whitespace tests
|
Whitespace tests
|
||||||
|
- 4 {% include {{page.include1}} %}
|
||||||
- 5 {% include {{ page.include1}} %}
|
- 5 {% include {{ page.include1}} %}
|
||||||
- 6 {% include {{ page.include1}} %}
|
- 6 {% include {{ page.include3 | downcase | append: '.html'}} %}
|
||||||
- 7 {% include {{ page.include3 | downcase | append: '.html'}} %}
|
|
||||||
|
|
||||||
Parameters test
|
Parameters test
|
||||||
- 8 {% include {{ page.include4 | append: '.html' }} var1='foo' var2='bar' %}
|
- 7 {% include {{ page.include4 | append: '.html' }} var1='foo' var2='bar' %}
|
||||||
|
|
|
@ -488,13 +488,12 @@ CONTENT
|
||||||
assert_match %r{1 included}, @content
|
assert_match %r{1 included}, @content
|
||||||
assert_match %r{2 included}, @content
|
assert_match %r{2 included}, @content
|
||||||
assert_match %r{3 included}, @content
|
assert_match %r{3 included}, @content
|
||||||
assert_match %r{4 included}, @content
|
|
||||||
end
|
end
|
||||||
|
|
||||||
should "include file as variable and liquid filters with arbitrary whitespace" do
|
should "include file as variable and liquid filters with arbitrary whitespace" do
|
||||||
|
assert_match %r{4 included}, @content
|
||||||
assert_match %r{5 included}, @content
|
assert_match %r{5 included}, @content
|
||||||
assert_match %r{6 included}, @content
|
assert_match %r{6 included}, @content
|
||||||
assert_match %r{7 included}, @content
|
|
||||||
end
|
end
|
||||||
|
|
||||||
should "include file as variable and filters with additional parameters" do
|
should "include file as variable and filters with additional parameters" do
|
||||||
|
|
Loading…
Reference in New Issue