aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/ajax_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/ajax_helper_test.rb')
-rw-r--r--actionpack/test/template/ajax_helper_test.rb4
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 2e46a38656..4a84ce47e0 100644
--- a/actionpack/test/template/ajax_helper_test.rb
+++ b/actionpack/test/template/ajax_helper_test.rb
@@ -267,8 +267,8 @@ class AjaxHelperTest < AjaxHelperBaseTest
end
test "submit_to_remote" do
- assert_dom_equal %(<input name=\"More beer!\" type=\"button\" value=\"1000000\" data-url=\"http://www.example.com/\" data-submit=\"true\" data-update-success=\"empty_bottle\" />),
- submit_to_remote("More beer!", 1_000_000, :update => "empty_bottle")
+ assert_dom_equal %(<input name=\"More beer!\" type=\"button\" value=\"1000000\" data-url=\"http://www.example.com/empty_bottle\" data-remote-submit=\"true\" data-update-success=\"empty_bottle\" />),
+ submit_to_remote("More beer!", 1_000_000, :url => { :action => 'empty_bottle' }, :update => "empty_bottle")
end
test "observe_field" do