aboutsummaryrefslogtreecommitdiffstats
path: root/test/erb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
commit287a34ae0dfc23e4158f67cb7783d239f202c368 (patch)
tree5e35d5b41aae961b37cf6632f60c42f51c7aa775 /test/erb
parent9b52ae2e6491bb5d6c59e1799449f6268baf6f89 (diff)
downloadruby-287a34ae0dfc23e4158f67cb7783d239f202c368.tar.gz
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/erb')
-rw-r--r--test/erb/test_erb.rb28
-rw-r--r--test/erb/test_erb_m17n.rb2
2 files changed, 15 insertions, 15 deletions
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb
index be9df0dbc3..3c54e8a50a 100644
--- a/test/erb/test_erb.rb
+++ b/test/erb/test_erb.rb
@@ -73,7 +73,7 @@ class TestERBCore < Test::Unit::TestCase
* <%= n %>
<% end %>
EOS
-
+
ans = <<EOS
%% hi
= hello
@@ -118,7 +118,7 @@ EOS
% n=0
* 2
EOS
-
+
erb = @erb.new(src, safe, 2)
assert_equal(ans, erb.result)
erb = @erb.new(src, safe, '<>')
@@ -212,7 +212,7 @@ end%>
%%%
EOS
ans = <<EOS
-%
+%
% %%><%0
% %%><%1
%%
@@ -234,7 +234,7 @@ EOS
klass.module_eval do
def_erb_method('hello_world', erb)
end
- assert(klass.new.respond_to?('hello_world'))
+ assert(klass.new.respond_to?('hello_world'))
end
def test_def_method_without_filename
@@ -300,7 +300,7 @@ EOS
def test_keep_lineno
src = <<EOS
-Hello,
+Hello,
% x = "World"
<%= x%>
% raise("lineno")
@@ -316,21 +316,21 @@ EOS
src = <<EOS
%>
-Hello,
+Hello,
<% x = "World%%>
"%>
<%= x%>
EOS
ans = <<EOS
-%>Hello,
+%>Hello,
World%>
EOS
assert_equal(ans, ERB.new(src, nil, '>').result)
ans = <<EOS
%>
-Hello,
+Hello,
World%>
EOS
@@ -338,7 +338,7 @@ EOS
ans = <<EOS
%>
-Hello,
+Hello,
World%>
@@ -346,7 +346,7 @@ EOS
assert_equal(ans, ERB.new(src).result)
src = <<EOS
-Hello,
+Hello,
<% x = "World%%>
"%>
<%= x%>
@@ -381,7 +381,7 @@ EOS
% y = 'Hello'
<%- x = "World%%>
"-%>
-<%= x %><%- x = nil -%>
+<%= x %><%- x = nil -%>
<% raise("lineno") %>
EOS
@@ -417,19 +417,19 @@ NotSkip <%- y = x -%> NotSkip
<%- up = w.upcase -%>
* <%= up %>
<%- end -%>
-KeepNewLine <%- z = nil -%>
+KeepNewLine <%- z = nil -%>
EOS
ans = <<EOS
NotSkip NotSkip
* HELLO
* WORLD
- NotSkip
+ NotSkip
* hello
* HELLO
* world
* WORLD
-KeepNewLine
+KeepNewLine
EOS
assert_equal(ans, ERB.new(src, nil, '-').result)
assert_equal(ans, ERB.new(src, nil, '-%').result)
diff --git a/test/erb/test_erb_m17n.rb b/test/erb/test_erb_m17n.rb
index 432cb4fd74..640b1e6c51 100644
--- a/test/erb/test_erb_m17n.rb
+++ b/test/erb/test_erb_m17n.rb
@@ -16,7 +16,7 @@ class TestERB < Test::Unit::TestCase
erb = ERB.new("γεια σας".encode("ISO-8859-7"))
assert_equal Encoding::ISO_8859_7, erb.result.encoding
- assert_raise(ArgumentError, /ASCII compatible/) {
+ assert_raise(ArgumentError, /ASCII compatible/) {
ERB.new("こんにちは".force_encoding("ISO-2022-JP")) # dummy encoding
}
end