diff options
author | miloops <miloops@gmail.com> | 2008-08-30 19:49:32 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-30 16:35:25 -0700 |
commit | 367a55e1b8deb87e7388cb97b2ac8c28a0796c89 (patch) | |
tree | 22f27274a97f77185f85187f8593727191a324be /actionpack/test | |
parent | cb25c4e5849dc3b803784ad985ea1cb4e43b0c74 (diff) | |
download | rails-367a55e1b8deb87e7388cb97b2ac8c28a0796c89.tar.gz rails-367a55e1b8deb87e7388cb97b2ac8c28a0796c89.tar.bz2 rails-367a55e1b8deb87e7388cb97b2ac8c28a0796c89.zip |
Allow prototype functions to receive position parameter as a symbol.
[#887 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/prototype_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index 3f51c50fb6..a1f541fd7b 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -79,6 +79,8 @@ class PrototypeHelperTest < PrototypeHelperBaseTest link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot", :a => '10', :b => '20' }) assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:false, evalScripts:true}); return false;\">Remote outauthor</a>), link_to_remote("Remote outauthor", :url => { :action => "whatnot" }, :type => :synchronous) + assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, insertion:'bottom'}); return false;\">Remote outauthor</a>), + link_to_remote("Remote outauthor", :url => { :action => "whatnot" }, :position => :bottom) end def test_link_to_remote_html_options |