aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2011-06-07 02:39:44 +0200
committerPiotr Sarnacki <drogus@gmail.com>2011-06-07 02:40:41 +0200
commita6c5cc2377cbc478cecde7e419c41de5f06ec4e1 (patch)
treea388fe0544f8b4df681b613d421032c2750e3809 /actionpack/test/template
parentcd27cd5e495d803750c3fc34e74365353cb6938b (diff)
downloadrails-a6c5cc2377cbc478cecde7e419c41de5f06ec4e1.tar.gz
rails-a6c5cc2377cbc478cecde7e419c41de5f06ec4e1.tar.bz2
rails-a6c5cc2377cbc478cecde7e419c41de5f06ec4e1.zip
Added missing assert to test checking form with namespaced isolated model and fixed helpers to work correctly in such case
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/form_helper_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index f2a49f7a68..5296556fe6 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -696,13 +696,13 @@ class FormHelperTest < ActionView::TestCase
concat f.submit('Edit post')
end
- expected =
- "<form accept-charset='UTF-8' action='/posts/44' method='post'>" +
- snowman +
- "<label for='post_title'>The Title</label>" +
+ expected = whole_form("/posts/44", "edit_post_44" , "edit_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' id='post_submit' type='submit' value='Edit post' />" +
+ "<input name='commit' type='submit' value='Edit post' />" +
"</form>"
+ end
+
+ assert_dom_equal expected, output_buffer
end
def test_form_for_with_symbol_object_name