Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2967 from arunagw/add_missing_assert

Add missing assert
  • Loading branch information...
commit f8c45197601b71c315be888dbce7b1d0d72662bc 2 parents 7317f6c + 38c7a67
@spastorino spastorino authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 actionpack/test/template/form_helper_test.rb
View
11 actionpack/test/template/form_helper_test.rb
@@ -697,12 +697,11 @@ def test_form_for_with_isolated_namespaced_model
end
expected =
- "<form accept-charset='UTF-8' action='/posts/44' method='post'>" +
- snowman +
- "<label for='post_title'>The Title</label>" +
- "<input name='post[title]' size='30' type='text' id='post_title' value='And his name will be forty and four.' />" +
- "<input name='commit' id='post_submit' type='submit' value='Edit post' />" +
- "</form>"
+ whole_form('/posts/44', "edit_blog_post_44", 'edit_blog_post', :method => 'put') do
+ "<input name='post[title]' size='30' type='text' id='post_title' value='And his name will be forty and four.' />" +
+ "<input name='commit' type='submit' value='Edit post' />"
+ end
+ assert_dom_equal expected, output_buffer
end
def test_form_for_with_symbol_object_name
Please sign in to comment.
Something went wrong with that request. Please try again.