From 8e49fa607f539f9cf698ef5296e7d760b7a3f2c7 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 16 Nov 2012 09:23:59 -0200 Subject: Fix failing template tests Introduced in 4a4de567b45ff28035419bc2d92f9b206e3c0a66. --- actionpack/test/template/template_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/test/template/template_test.rb') diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb index 6c11ee5322..ed9d303158 100644 --- a/actionpack/test/template/template_test.rb +++ b/actionpack/test/template/template_test.rb @@ -52,7 +52,7 @@ class TestERBTemplate < ActiveSupport::TestCase end end - def new_template(body = "<%= hello %>", details = {format: html}) + def new_template(body = "<%= hello %>", details = { format: :html }) ActionView::Template.new(body, "hello template", details.fetch(:handler) { ERBHandler }, {:virtual_path => "hello"}.merge!(details)) end @@ -82,7 +82,7 @@ class TestERBTemplate < ActiveSupport::TestCase end def test_text_template_does_not_html_escape - @template = new_template("<%= apostrophe %>", format: text) + @template = new_template("<%= apostrophe %>", format: :text) assert_equal "l'apostrophe", render end -- cgit v1.2.3