1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix failing template tests

Introduced in 4a4de567b4.
This commit is contained in:
Carlos Antonio da Silva 2012-11-16 09:23:59 -02:00
parent 832b1e5bd6
commit 8e49fa607f

View file

@ -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