diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-30 15:01:02 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-30 15:01:02 -0600 |
commit | 95f317b0204d63810b837eae48667d9ed311f7dd (patch) | |
tree | 301af62fc9db53469410f9128007031cb7e22cfc /actionpack/test | |
parent | 61c9b1648703c29133c3ea2ec083e275d95edbec (diff) | |
download | rails-95f317b0204d63810b837eae48667d9ed311f7dd.tar.gz rails-95f317b0204d63810b837eae48667d9ed311f7dd.tar.bz2 rails-95f317b0204d63810b837eae48667d9ed311f7dd.zip |
Move periodically_call_remote into prototype_legacy_helper plugin
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/prototype_helper_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index b37f71dd61..4e37de2aef 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -122,18 +122,6 @@ class PrototypeHelperTest < PrototypeHelperBaseTest button_to_remote("Remote outpost", :failure => "alert(request.reponseText)", :url => { :action => "whatnot", :a => '10', :b => '20' }) end - def test_periodically_call_remote - assert_dom_equal %(<script type="text/javascript">\n//<![CDATA[\nnew PeriodicalExecuter(function() {new Ajax.Updater('schremser_bier', 'http://www.example.com/mehr_bier', {asynchronous:true, evalScripts:true})}, 10)\n//]]>\n</script>), - periodically_call_remote(:update => "schremser_bier", :url => { :action => "mehr_bier" }) - end - - def test_periodically_call_remote_with_frequency - assert_dom_equal( - "<script type=\"text/javascript\">\n//<![CDATA[\nnew PeriodicalExecuter(function() {new Ajax.Request('http://www.example.com/', {asynchronous:true, evalScripts:true})}, 2)\n//]]>\n</script>", - periodically_call_remote(:frequency => 2) - ) - end - def test_form_remote_tag assert_dom_equal %(<form action=\"http://www.example.com/fast\" method=\"post\" onsubmit=\"new Ajax.Updater('glass_of_beer', 'http://www.example.com/fast', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;\">), form_remote_tag(:update => "glass_of_beer", :url => { :action => :fast }) |