From cd79a4617421f1b66e905f5da84ff28004e2bedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 10 Apr 2010 10:53:05 +0200 Subject: Remove input, form, error_messages_for and error_message_on from the framework. If you think you will miss them, feel free to use the dynamic_form plugin available at http://github.com/rails/dynamic_form --- actionpack/test/template/form_helper_test.rb | 37 ---------------------------- 1 file changed, 37 deletions(-) (limited to 'actionpack/test/template/form_helper_test.rb') diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index abd50a3bf9..28a13b07be 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -1366,43 +1366,6 @@ class FormHelperTest < ActionView::TestCase ActionView::Base.default_form_builder = old_default_form_builder end - def test_default_form_builder_with_active_record_helpers - assert_deprecated do - form_for(:post, @post) do |f| - concat f.error_message_on('author_name') - concat f.error_messages - end - end - - expected = %(
) + - %(
can't be empty
) + - %(

1 error prohibited this post from being saved

There were problems with the following fields:

  • Author name can't be empty
) + - %(
) - - assert_dom_equal expected, output_buffer - - end - - def test_default_form_builder_no_instance_variable - post = @post - @post = nil - - assert_deprecated do - form_for(:post, post) do |f| - concat f.error_message_on('author_name') - concat f.error_messages - end - end - - expected = %(
) + - %(
can't be empty
) + - %(

1 error prohibited this post from being saved

There were problems with the following fields:

  • Author name can't be empty
) + - %(
) - - assert_dom_equal expected, output_buffer - - end - def test_fields_for_with_labelled_builder output_buffer = fields_for(:post, @post, :builder => LabelledFormBuilder) do |f| concat f.text_field(:title) -- cgit v1.2.3