diff options
Diffstat (limited to 'actionpack/test/template/prototype_helper_test.rb')
-rw-r--r-- | actionpack/test/template/prototype_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index c97aca5e79..c15280dcb3 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -167,7 +167,7 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase end def test_replace_html_with_string - assert_equal '$("element").innerHTML = "<p>This is a test</p>";', + assert_equal 'Element.update("element", "<p>This is a test</p>");', @generator.replace_html('element', '<p>This is a test</p>') end @@ -202,7 +202,7 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase new Insertion.Top("element", "<p>This is a test</p>"); new Insertion.Bottom("element", "<p>This is a test</p>"); ["foo", "bar"].each(Element.remove); -$("baz").innerHTML = "<p>This is a test</p>"; +Element.update("baz", "<p>This is a test</p>"); EOS end end |