aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/scriptaculous_helper_test.rb
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2006-01-23 17:09:15 +0000
committerSam Stephenson <sam@37signals.com>2006-01-23 17:09:15 +0000
commit9c52a41241a632315edb77381240b66a7cc5aef4 (patch)
tree872352d82ff875e7d4ddd43c0f1adbc714e8282f /actionpack/test/template/scriptaculous_helper_test.rb
parent185cca238bc1df79a3bb438679bbbeb980f82078 (diff)
downloadrails-9c52a41241a632315edb77381240b66a7cc5aef4.tar.gz
rails-9c52a41241a632315edb77381240b66a7cc5aef4.tar.bz2
rails-9c52a41241a632315edb77381240b66a7cc5aef4.zip
Add the ability to call JavaScriptGenerator methods from helpers called in update blocks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/scriptaculous_helper_test.rb')
-rw-r--r--actionpack/test/template/scriptaculous_helper_test.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/actionpack/test/template/scriptaculous_helper_test.rb b/actionpack/test/template/scriptaculous_helper_test.rb
index b42d8f7f04..779b5aa13b 100644
--- a/actionpack/test/template/scriptaculous_helper_test.rb
+++ b/actionpack/test/template/scriptaculous_helper_test.rb
@@ -40,15 +40,6 @@ class ScriptaculousHelperTest < Test::Unit::TestCase
end
- def test_parallel_effects
- actual = parallel_effects(:duration => 2) do
- visual_effect(:highlight, "posts") +
- visual_effect(:fade, "fademe", :duration => 4.0)
- end
-
- assert_equal "new Effect.Parallel([new Effect.Highlight('posts',{});new Effect.Fade('fademe',{duration:4.0});], {duration:2})", actual
- end
-
def test_sortable_element
assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nSortable.create('mylist', {onUpdate:function(){new Ajax.Request('http://www.example.com/order', {asynchronous:true, evalScripts:true, parameters:Sortable.serialize('mylist')})}})\n//]]>\n</script>),
sortable_element("mylist", :url => { :action => "order" })