mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
832b1e5bd6
commit
8e49fa607f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue