diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-23 23:31:30 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-23 23:31:30 +0900 |
commit | be984f02db145c0091c265babd331127c3b408d9 (patch) | |
tree | f7d0ffb96e101d488e89a3bb03e0ca7c89ea61b1 /actionview/test | |
parent | fd63aa02289d64e9d14fe56723f1de64bca3bb1f (diff) | |
download | rails-be984f02db145c0091c265babd331127c3b408d9.tar.gz rails-be984f02db145c0091c265babd331127c3b408d9.tar.bz2 rails-be984f02db145c0091c265babd331127c3b408d9.zip |
Unneeded attr_accessor with side effects
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/form_helper/form_with_test.rb | 4 | ||||
-rw-r--r-- | actionview/test/template/form_helper_test.rb | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/actionview/test/template/form_helper/form_with_test.rb b/actionview/test/template/form_helper/form_with_test.rb index dd0883e071..3d93e89bcb 100644 --- a/actionview/test/template/form_helper/form_with_test.rb +++ b/actionview/test/template/form_helper/form_with_test.rb @@ -578,8 +578,6 @@ class FormWithActsLikeFormForTest < FormWithTest end def test_form_with_with_file_field_generate_multipart - Post.send :attr_accessor, :file - form_with(model: @post, id: "create-post") do |f| concat f.file_field(:file) end @@ -592,8 +590,6 @@ class FormWithActsLikeFormForTest < FormWithTest end def test_fields_with_file_field_generate_multipart - Comment.send :attr_accessor, :file - form_with(model: @post) do |f| concat f.fields(:comment, model: @post) { |c| concat c.file_field(:file) diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb index 022bf315ce..4c7134abac 100644 --- a/actionview/test/template/form_helper_test.rb +++ b/actionview/test/template/form_helper_test.rb @@ -1751,8 +1751,6 @@ class FormHelperTest < ActionView::TestCase end def test_form_for_with_file_field_generate_multipart - Post.send :attr_accessor, :file - form_for(@post, html: { id: "create-post" }) do |f| concat f.file_field(:file) end @@ -1765,8 +1763,6 @@ class FormHelperTest < ActionView::TestCase end def test_fields_for_with_file_field_generate_multipart - Comment.send :attr_accessor, :file - form_for(@post) do |f| concat f.fields_for(:comment, @post) { |c| concat c.file_field(:file) |