Javascript tests expects the old default of escaping HTML, make it so for now

This commit is contained in:
David Heinemeier Hansson 2010-01-10 18:25:17 -08:00
parent 5ddc597066
commit 2c2b84f93c
2 changed files with 10 additions and 0 deletions

View File

@ -13,8 +13,13 @@ class JavaScriptHelperTest < ActionView::TestCase
def setup
super
ActiveSupport.escape_html_entities_in_json = true
@template = self
end
def teardown
ActiveSupport.escape_html_entities_in_json = false
end
def _evaluate_assigns_and_ivars() end

View File

@ -317,6 +317,11 @@ class JavaScriptGeneratorTest < PrototypeHelperBaseTest
def setup
super
@generator = create_generator
ActiveSupport.escape_html_entities_in_json = true
end
def teardown
ActiveSupport.escape_html_entities_in_json = false
end
def _evaluate_assigns_and_ivars() end