aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-06-01 12:33:49 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-06-01 12:34:08 -0700
commit94911c7af7f2e1da0a23d64d2055b77bc1f6ece8 (patch)
tree72c5ee6df180bdc1a9009be10feae8ccff940800 /actionpack/test/fixtures
parent9537fd0e3a7625afe4bee75d749647ca1837195a (diff)
downloadrails-94911c7af7f2e1da0a23d64d2055b77bc1f6ece8.tar.gz
rails-94911c7af7f2e1da0a23d64d2055b77bc1f6ece8.tar.bz2
rails-94911c7af7f2e1da0a23d64d2055b77bc1f6ece8.zip
Ensure ERB source begins with the encoding comment
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r--actionpack/test/fixtures/test/utf8.html.erb1
-rw-r--r--actionpack/test/fixtures/test/utf8_magic.html.erb5
2 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/test/fixtures/test/utf8.html.erb b/actionpack/test/fixtures/test/utf8.html.erb
index 58cd03b439..14fe12debc 100644
--- a/actionpack/test/fixtures/test/utf8.html.erb
+++ b/actionpack/test/fixtures/test/utf8.html.erb
@@ -1,4 +1,3 @@
-<%# encoding: utf-8 -%>
Русский текст
<%= "日".encoding %>
<%= @output_buffer.encoding %>
diff --git a/actionpack/test/fixtures/test/utf8_magic.html.erb b/actionpack/test/fixtures/test/utf8_magic.html.erb
new file mode 100644
index 0000000000..58cd03b439
--- /dev/null
+++ b/actionpack/test/fixtures/test/utf8_magic.html.erb
@@ -0,0 +1,5 @@
+<%# encoding: utf-8 -%>
+Русский текст
+<%= "日".encoding %>
+<%= @output_buffer.encoding %>
+<%= __ENCODING__ %>