aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/prototype_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/prototype_helper_test.rb')
-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