diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-10 01:14:50 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-10 01:14:50 +0200 |
commit | c7408a0e40545558872efb4129fe4bf097c9ce2f (patch) | |
tree | 885530615b24077435f5e2c920c906f89117f42f /actionpack/test/template | |
parent | 64c7f7e39244129e9330afed82da8a7ffeb948b3 (diff) | |
download | rails-c7408a0e40545558872efb4129fe4bf097c9ce2f.tar.gz rails-c7408a0e40545558872efb4129fe4bf097c9ce2f.tar.bz2 rails-c7408a0e40545558872efb4129fe4bf097c9ce2f.zip |
Deprecate old template handler API. Remove old handlers.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/template_test.rb | 4 |
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 |