Skip to content

Commit

Permalink
Fix broken capture test
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed Jul 4, 2005
1 parent fcdcd9b commit 6e7e552
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions actionpack/test/controller/capture_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def test_simple_capture
def test_update_element_with_capture def test_update_element_with_capture
get :update_element_with_capture get :update_element_with_capture
assert_equal( assert_equal(
"<script type=\"text/javascript\">$('products').innerHTML = '\\n <p>Product 1</p>\\n <p>Product 2</p>\\n'</script>" + "<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'", "\n\n$('status').innerHTML = '\\n <b>You bought something!</b>\\n';",
@response.body.strip @response.body.strip
) )
end end
Expand Down
Original file line number Original file line Diff line number Diff line change
@@ -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 1</p>
<p>Product 2</p> <p>Product 2</p>
<% end %> <% end %>
<%= javascript_tag(replacement_function) %> <%= 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> <b>You bought something!</b>
<% end %> <% end %>

0 comments on commit 6e7e552

Please sign in to comment.