summaryrefslogtreecommitdiff
path: root/test/erb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-07 05:02:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-07 05:02:18 +0000
commit13d3f023c6db44ffafeb5845516086b6b3f44d39 (patch)
treee18d662aea55f8f003b879e601dc1d4e3bf2cd86 /test/erb
parent97de2b36e92cc4efec081c51aea62ff40e8c1b56 (diff)
test: remove or replace trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/erb')
-rw-r--r--test/erb/test_erb.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb
index 686c404..89fdbff 100644
--- a/test/erb/test_erb.rb
+++ b/test/erb/test_erb.rb
@@ -240,7 +240,7 @@ end%>
%%%
EOS
ans = <<EOS
-%
+%\s
% %%><%0
% %%><%1
%%
@@ -328,7 +328,7 @@ EOS
def test_keep_lineno
src = <<EOS
-Hello,
+Hello,\s
% x = "World"
<%= x%>
% raise("lineno")
@@ -344,21 +344,21 @@ EOS
src = <<EOS
%>
-Hello,
+Hello,\s
<% x = "World%%>
"%>
<%= x%>
EOS
ans = <<EOS
-%>Hello,
+%>Hello,\s
World%>
EOS
assert_equal(ans, ERB.new(src, nil, '>').result)
ans = <<EOS
%>
-Hello,
+Hello,\s
World%>
EOS
@@ -366,7 +366,7 @@ EOS
ans = <<EOS
%>
-Hello,
+Hello,\s
World%>
@@ -374,7 +374,7 @@ EOS
assert_equal(ans, ERB.new(src).result)
src = <<EOS
-Hello,
+Hello,\s
<% x = "World%%>
"%>
<%= x%>
@@ -409,7 +409,7 @@ EOS
% y = 'Hello'
<%- x = "World%%>
"-%>
-<%= x %><%- x = nil -%>
+<%= x %><%- x = nil -%>\s
<% raise("lineno") %>
EOS
@@ -445,19 +445,19 @@ NotSkip <%- y = x -%> NotSkip
<%- up = w.upcase -%>
* <%= up %>
<%- end -%>
-KeepNewLine <%- z = nil -%>
+KeepNewLine <%- z = nil -%>\s
EOS
ans = <<EOS
NotSkip NotSkip
* HELLO
* WORLD
- NotSkip
+ NotSkip\s
* hello
* HELLO
* world
* WORLD
-KeepNewLine
+KeepNewLine \s
EOS
assert_equal(ans, ERB.new(src, nil, '-').result)
assert_equal(ans, ERB.new(src, nil, '-%').result)