diff options
author | Thomas Fuchs <thomas@fesch.at> | 2006-08-07 11:08:32 +0000 |
---|---|---|
committer | Thomas Fuchs <thomas@fesch.at> | 2006-08-07 11:08:32 +0000 |
commit | a3b045a73e729e44719713084462825ef98f8bc0 (patch) | |
tree | 7eec271ae48be9ca9009f9a2916f980685e3ca12 /actionpack/test/template | |
parent | 883c54a3173a39c3e0afaeb85c4b5537590201e8 (diff) | |
download | rails-a3b045a73e729e44719713084462825ef98f8bc0.tar.gz rails-a3b045a73e729e44719713084462825ef98f8bc0.tar.bz2 rails-a3b045a73e729e44719713084462825ef98f8bc0.zip |
Add support for the param_name parameter to the auto_complete_field helper. Fixes #5026 [david.a.williams@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/java_script_macros_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/java_script_macros_helper_test.rb b/actionpack/test/template/java_script_macros_helper_test.rb index 9d3c3f8052..7d2d8eb68f 100644 --- a/actionpack/test/template/java_script_macros_helper_test.rb +++ b/actionpack/test/template/java_script_macros_helper_test.rb @@ -38,6 +38,8 @@ class JavaScriptMacrosHelperTest < Test::Unit::TestCase assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nvar some_input_auto_completer = new Ajax.Autocompleter('some_input', 'some_input_auto_complete', 'http://www.example.com/autocomplete', {afterUpdateElement:function(element,value){alert('You have chosen: '+value)}})\n//]]>\n</script>), auto_complete_field("some_input", :url => { :action => "autocomplete" }, :after_update_element => "function(element,value){alert('You have chosen: '+value)}"); + assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nvar some_input_auto_completer = new Ajax.Autocompleter('some_input', 'some_input_auto_complete', 'http://www.example.com/autocomplete', {paramName:'huidriwusch'})\n//]]>\n</script>), + auto_complete_field("some_input", :url => { :action => "autocomplete" }, :param_name => 'huidriwusch'); end def test_auto_complete_result |