Javascript tests expects the old default of escaping HTML, make it so for now
This commit is contained in:
parent
5ddc597066
commit
2c2b84f93c
|
@ -13,9 +13,14 @@ 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
|
||||
|
||||
def test_escape_javascript
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue