Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix broken capture test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 6e7e552b039c66d1ad5251651d01e0ea097163c5 1 parent fcdcd9b
@jamis jamis authored
View
4 actionpack/test/controller/capture_test.rb
@@ -31,8 +31,8 @@ def test_simple_capture
def test_update_element_with_capture
get :update_element_with_capture
assert_equal(
- "<script type=\"text/javascript\">$('products').innerHTML = '\\n <p>Product 1</p>\\n <p>Product 2</p>\\n'</script>" +
- "\n\n$('status').innerHTML = '\\n <b>You bought something!</b>\\n'",
+ "<script type=\"text/javascript\">$('products').innerHTML = '\\n <p>Product 1</p>\\n <p>Product 2</p>\\n';\n</script>" +
+ "\n\n$('status').innerHTML = '\\n <b>You bought something!</b>\\n';",
@response.body.strip
)
end
View
6 actionpack/test/fixtures/test/update_element_with_capture.rhtml
@@ -1,9 +1,9 @@
-<% replacement_function = update_element_function("products", :action => :replace) do %>
+<% replacement_function = update_element_function("products", :action => :update) do %>
<p>Product 1</p>
<p>Product 2</p>
<% end %>
<%= javascript_tag(replacement_function) %>
-<% update_element_function("status", :action => :replace, :binding => binding) do %>
+<% update_element_function("status", :action => :update, :binding => binding) do %>
<b>You bought something!</b>
-<% end %>
+<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.