Skip to content

Commit

Permalink
Merge pull request #2967 from arunagw/add_missing_assert
Browse files Browse the repository at this point in the history
Add missing assert
  • Loading branch information
spastorino committed Sep 10, 2011
2 parents 7317f6c + 38c7a67 commit f8c4519
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions actionpack/test/template/form_helper_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit f8c4519

Please sign in to comment.