summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-01-09 23:35:08 -0700
committerGitHub <noreply@github.com>2019-01-09 23:35:08 -0700
commit1641e885e4e101129c50d6ce851a7fcccccee079 (patch)
tree01446ca4b9e0e80071e24ca6b3f79ec5b81a3ac9 /test/fixtures
parent7974f011093dfabbe846bd59ef8f65f7deacec0b (diff)
resolves #3006 fix deprecated ERB trim mode (PR #3007)
- use 0 instead of < - augment test to verify behavior of trim mode - remove encoding setting from ERB template
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb2
-rw-r--r--test/fixtures/custom-backends/erb/html5/open.html.erb8
2 files changed, 9 insertions, 1 deletions
diff --git a/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb b/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb
index 7eb80950..eaaef93c 100644
--- a/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb
+++ b/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb
@@ -1,4 +1,4 @@
-<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['paragraph',role].compact * ' ' %>"><%
+<div<%= @id && %( id="#{@id}") %> class="<%= ['paragraph',role].compact * ' ' %>"><%
if title? %>
<div class="title"><%= title %></div><%
end %>
diff --git a/test/fixtures/custom-backends/erb/html5/open.html.erb b/test/fixtures/custom-backends/erb/html5/open.html.erb
new file mode 100644
index 00000000..ca738ed7
--- /dev/null
+++ b/test/fixtures/custom-backends/erb/html5/open.html.erb
@@ -0,0 +1,8 @@
+<div<%= @id && %( id="#{@id}") %> class="<%= ['openblock',(@style == 'open' ? nil : @style),role].compact * ' ' %>"><%
+ if title? %>
+<div class="title"><%= title %></div><%
+ end %>
+<div class="content">
+<%= content %>
+</div>
+</div>