Skip to content

Commit

Permalink
ActionView::OutputBuffer doesn't have #replace method anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Sep 24, 2022
1 parent 2b77e9c commit b472e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/form_builder/wrapper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b472e19

Please sign in to comment.