aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-07-02 01:54:36 +0530
committerVipul A M <vipulnsward@gmail.com>2013-07-02 02:06:39 +0530
commit38aafc037705aab2f09ec924bf634d105002e016 (patch)
tree1871478987d16f6877ea04bc7d20c4a9a3646ab0 /actionview/test
parentcd74f0292f0e4caa13fae2b9869f5f190c081839 (diff)
downloadrails-38aafc037705aab2f09ec924bf634d105002e016.tar.gz
rails-38aafc037705aab2f09ec924bf634d105002e016.tar.bz2
rails-38aafc037705aab2f09ec924bf634d105002e016.zip
Remove `FormBuilder` deprecation warning about block argument and associated tests
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/form_helper_test.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb
index db44b00ef6..f05b6d0d94 100644
--- a/actionview/test/template/form_helper_test.rb
+++ b/actionview/test/template/form_helper_test.rb
@@ -2916,18 +2916,6 @@ class FormHelperTest < ActionView::TestCase
assert_equal "fields", output
end
- def test_form_builder_block_argument_deprecation
- builder_class = Class.new(ActionView::Helpers::FormBuilder) do
- def initialize(object_name, object, template, options, block)
- super
- end
- end
-
- assert_deprecated(/Giving a block to FormBuilder is deprecated and has no effect anymore/) do
- builder_class.new(:foo, nil, nil, {}, proc {})
- end
- end
-
def test_form_for_only_instantiates_builder_once
initialization_count = 0
builder_class = Class.new(ActionView::Helpers::FormBuilder) do