From b472e19b5d344405e224d7ec6264a2d4793c54e1 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Sat, 24 Sep 2022 10:19:31 +0200 Subject: [PATCH] ActionView::OutputBuffer doesn't have #replace method anymore. See https://github.com/rails/rails/commit/4e8e82829182cc2c1dc07997acc210bc0656eda4 --- test/form_builder/wrapper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/form_builder/wrapper_test.rb b/test/form_builder/wrapper_test.rb index 5958cc3bf..9c7786ee6 100644 --- a/test/form_builder/wrapper_test.rb +++ b/test/form_builder/wrapper_test.rb @@ -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