Skip to content
Browse files

Drop legacy from module name

  • Loading branch information...
1 parent 4b71a54 commit 4031b4a7b042724dfcb51167a9288295fd783b7f @josh josh committed Jan 30, 2010
View
2 lib/prototype_legacy_helper.rb → lib/prototype_helper.rb
@@ -1,4 +1,4 @@
-module PrototypeLegacyHelper
+module PrototypeHelper
# Creates a button with an onclick event which calls a remote action
# via XMLHttpRequest
# The options for specifying the target with :url
View
2 test/test_prototype_legacy_helper.rb → test/test_prototype_helper.rb
@@ -1,7 +1,7 @@
require 'test/unit'
require 'prototype_legacy_helper'
-class TestPrototypeLegacyHelper < ActionView::TestCase
+class TestPrototypeHelper < ActionView::TestCase
def test_observe_form
assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Form.Observer('cart', 2, function(element, value) {new Ajax.Request('http://www.example.com/cart_changed', {asynchronous:true, evalScripts:true, parameters:value})})\n//]]>\n</script>),
observe_form("cart", :frequency => 2, :url => { :action => "cart_changed" })

0 comments on commit 4031b4a

Please sign in to comment.
Something went wrong with that request. Please try again.