ActionView::OutputBuffer doesn't have #replace method anymore.

See 4e8e828291
This commit is contained in:
Vasiliy Ermolovich 2022-09-24 10:19:31 +02:00
parent 2b77e9cb00
commit b472e19b5d
1 changed files with 2 additions and 2 deletions

View File

@ -195,12 +195,12 @@ class WrapperTest < ActionView::TestCase
with_form_for @user, :name
assert_no_select "section.custom_wrapper div.another_wrapper label"
assert_no_select "section.custom_wrapper div.another_wrapper input.string"
output_buffer.replace ""
output_buffer.to_s.replace ""
with_form_for @user, :name, wrapper: :another
assert_select "section.custom_wrapper div.another_wrapper label"
assert_select "section.custom_wrapper div.another_wrapper input.string"
output_buffer.replace ""
output_buffer.to_s.replace ""
end
with_form_for @user, :name, wrapper: custom_wrapper