diff options
author | Erik St. Martin <alakriti@gmail.com> | 2010-01-26 11:06:58 -0500 |
---|---|---|
committer | Stefan Penner <stefan.penner@gmail.com> | 2010-01-27 12:44:35 -0600 |
commit | 0215466832faddd2fc5ebef9500f06fa1b95228e (patch) | |
tree | 11a9f8c2d9dd60d8b681c247899bf138385ce7df /actionpack/test/template | |
parent | 6a8da2053eb1e833347e5ed5dc578fc47cdf9309 (diff) | |
download | rails-0215466832faddd2fc5ebef9500f06fa1b95228e.tar.gz rails-0215466832faddd2fc5ebef9500f06fa1b95228e.tar.bz2 rails-0215466832faddd2fc5ebef9500f06fa1b95228e.zip |
periodically_call_remote does not need data-observe=true
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/ajax_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/ajax_helper_test.rb b/actionpack/test/template/ajax_helper_test.rb index d31e4daf08..47d458e4ef 100644 --- a/actionpack/test/template/ajax_helper_test.rb +++ b/actionpack/test/template/ajax_helper_test.rb @@ -160,13 +160,13 @@ class AjaxHelperTest < AjaxHelperBaseTest end test "periodically_call_remote" do - assert_dom_equal %(<script data-url=\"http://www.example.com/mehr_bier\" data-observe=\"true\" data-update-success=\"schremser_bier\" type=\"application/json\" data-periodical=\"true\"></script>), + assert_dom_equal %(<script data-url=\"http://www.example.com/mehr_bier\" data-update-success=\"schremser_bier\" type=\"application/json\" data-periodical=\"true\"></script>), periodically_call_remote(:update => "schremser_bier", :url => { :action => "mehr_bier" }) end test "periodically_call_remote_with_frequency" do assert_dom_equal( - "<script data-periodical=\"true\" data-url=\"http://www.example.com/\" data-observe=\"true\" type=\"application/json\" data-frequency=\"2\"></script>", + "<script data-periodical=\"true\" data-url=\"http://www.example.com/\" type=\"application/json\" data-frequency=\"2\"></script>", periodically_call_remote(:frequency => 2) ) end |