aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/template_test.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-16 09:23:59 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-16 09:24:00 -0200
commit8e49fa607f539f9cf698ef5296e7d760b7a3f2c7 (patch)
treeef3b3954e9ad4c71d66fbb94a0044abe2ce07a91 /actionpack/test/template/template_test.rb
parent832b1e5bd6637165e768c3aa32cdf7496a9d96e9 (diff)
downloadrails-8e49fa607f539f9cf698ef5296e7d760b7a3f2c7.tar.gz
rails-8e49fa607f539f9cf698ef5296e7d760b7a3f2c7.tar.bz2
rails-8e49fa607f539f9cf698ef5296e7d760b7a3f2c7.zip
Fix failing template tests
Introduced in 4a4de567b45ff28035419bc2d92f9b206e3c0a66.
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 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