aboutsummaryrefslogtreecommitdiffstats
path: root/test/erb/test_erb_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/erb/test_erb_command.rb')
-rw-r--r--test/erb/test_erb_command.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/erb/test_erb_command.rb b/test/erb/test_erb_command.rb
index 406b14cdb3..7e2b874632 100644
--- a/test/erb/test_erb_command.rb
+++ b/test/erb/test_erb_command.rb
@@ -9,4 +9,10 @@ class TestErbCommand < Test::Unit::TestCase
"var=hoge"],
"<%=var%>", ["hoge"])
end
+
+ def test_template_file_encoding
+ assert_in_out_err(["-w",
+ File.expand_path("../../../bin/erb", __FILE__)],
+ "<%=''.encoding.to_s%>", ["UTF-8"])
+ end
end