aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-12 20:10:59 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-12 20:10:59 +0000
commit8dc4f4623354b65a639ac3c8981e1c362801d722 (patch)
treeeb67d25728e0fb63d752c2e429a72fbbf9ecee6e /actionpack/test
parentebdb766e7956520e9e5a784e280a8f1916f50511 (diff)
downloadrails-8dc4f4623354b65a639ac3c8981e1c362801d722.tar.gz
rails-8dc4f4623354b65a639ac3c8981e1c362801d722.tar.bz2
rails-8dc4f4623354b65a639ac3c8981e1c362801d722.zip
Also support replace and replace_html and some refactoring in JavaScriptElementProxy [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/prototype_helper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb
index 8657b1f107..6ce8380a69 100644
--- a/actionpack/test/template/prototype_helper_test.rb
+++ b/actionpack/test/template/prototype_helper_test.rb
@@ -237,6 +237,11 @@ Element.update("baz", "<p>This is a test</p>");
assert_equal %($('hello').hide();), @generator.to_s
end
+ def test_element_proxy_assignment
+ @generator['hello'].assign :width, 400
+ assert_equal %($('hello').width = 400;), @generator.to_s
+ end
+
def test_element_proxy_two_deep
@generator['hello'].hide("first").display
assert_equal %($('hello').hide("first").display();), @generator.to_s