Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change the POST redirection form's ID.

  • Loading branch information...
commit 7e2320b87322d2485bf38acd2700a8776ee58852 1 parent 4637341
@FooBarWidget authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/auto_redirection.rb
  2. +1 −1  test/abstract_unit.rb
View
2  lib/auto_redirection.rb
@@ -246,7 +246,7 @@ class << self
# A view template for redirecting the browser back to a place, while
# sending a POST request.
TEMPLATE_FOR_POST_REDIRECTION = %q{
- <% form_tag(@form_action, { :method => @redirection_information.method, :id => 'form' }) do %>
+ <% form_tag(@form_action, { :method => @redirection_information.method, :id => '_auto_redirection_form' }) do %>
<div class="nested_redirection_information">
<%= hidden_field_tag('_redirection_information', @nested_redirection_information) if @nested_redirection_information %>
</div>
View
2  test/abstract_unit.rb
@@ -43,7 +43,7 @@ def self.test(name, &block)
module TestHelpers
private
def form_action
- return CGI.unescapeHTML(css_select("#form").first['action'])
+ return CGI.unescapeHTML(css_select("#_auto_redirection_form").first['action'])
end
def parse_form_action
Please sign in to comment.
Something went wrong with that request. Please try again.