diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-07-09 09:13:24 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-07-09 09:13:24 -0500 |
commit | 6b61e95dc8d717b4500ab623816863c0bb707e2b (patch) | |
tree | 24c6a89bdecc107bb639665792e1e290c1563277 /actionpack/test/template | |
parent | 84af99e78dbf65b7faa92313acf8457cb0c2b510 (diff) | |
download | rails-6b61e95dc8d717b4500ab623816863c0bb707e2b.tar.gz rails-6b61e95dc8d717b4500ab623816863c0bb707e2b.tar.bz2 rails-6b61e95dc8d717b4500ab623816863c0bb707e2b.zip |
Changed PrototypeHelper#submit_to_remote to PrototypeHelper#button_to_remote to stay consistent with link_to_remote (submit_to_remote still works as an alias) (clemens) [#8994 status:closed]
Diffstat (limited to 'actionpack/test/template')
-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 60b83b476d..1d9bc5eb9b 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -201,9 +201,9 @@ class PrototypeHelperTest < PrototypeHelperBaseTest end - def test_submit_to_remote + def test_button_to_remote assert_dom_equal %(<input name=\"More beer!\" onclick=\"new Ajax.Updater('empty_bottle', 'http://www.example.com/', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this.form)}); return false;\" type=\"button\" value=\"1000000\" />), - submit_to_remote("More beer!", 1_000_000, :update => "empty_bottle") + button_to_remote("More beer!", 1_000_000, :update => "empty_bottle") end def test_observe_field |