aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/template_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-10-10 01:14:50 +0200
committerJosé Valim <jose.valim@gmail.com>2010-10-10 01:14:50 +0200
commitc7408a0e40545558872efb4129fe4bf097c9ce2f (patch)
tree885530615b24077435f5e2c920c906f89117f42f /actionpack/test/template/template_test.rb
parent64c7f7e39244129e9330afed82da8a7ffeb948b3 (diff)
downloadrails-c7408a0e40545558872efb4129fe4bf097c9ce2f.tar.gz
rails-c7408a0e40545558872efb4129fe4bf097c9ce2f.tar.bz2
rails-c7408a0e40545558872efb4129fe4bf097c9ce2f.zip
Deprecate old template handler API. Remove old handlers.
Diffstat (limited to 'actionpack/test/template/template_test.rb')
-rw-r--r--actionpack/test/template/template_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb
index 00bfbbccd6..eb2d4aab36 100644
--- a/actionpack/test/template/template_test.rb
+++ b/actionpack/test/template/template_test.rb
@@ -1,7 +1,7 @@
require "abstract_unit"
class TestERBTemplate < ActiveSupport::TestCase
- ERBHandler = ActionView::Template::Handlers::ERB
+ ERBHandler = ActionView::Template::Handlers::ERB.new
class Context
def initialize
@@ -121,7 +121,7 @@ class TestERBTemplate < ActiveSupport::TestCase
def test_encoding_can_be_specified_with_magic_comment_in_erb
with_external_encoding Encoding::UTF_8 do
- @template = new_template("<%# encoding: ISO-8859-1 %>hello \xFCmlat")
+ @template = new_template("<%# encoding: ISO-8859-1 %>hello \xFCmlat", :virtual_path => nil)
result = render
assert_equal Encoding::UTF_8, render.encoding
assert_equal "hello \u{fc}mlat", render