Permalink
Browse files

Change the POST redirection form's ID.

  • Loading branch information...
FooBarWidget committed Sep 4, 2008
1 parent 4637341 commit 7e2320b87322d2485bf38acd2700a8776ee58852
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/auto_redirection.rb
  2. +1 −1 test/abstract_unit.rb
View
@@ -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
@@ -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

0 comments on commit 7e2320b

Please sign in to comment.