Skip to content

Update view_component gem to v2.61.0

Thomas Hutterer requested to merge update_view_component_gem into master

What does this MR do and why?

This updates the view_component gem to its latest version, 2.61.0 which contains a fix that we need to be able to use previews and with that !89240 (merged).

The new version now prints a deprecation warning for each usage of rendered_component (only used in tests). I have replaced it with page as suggested expect for one file where that resulted in failing specs due to the way the test is written (using include checking for exact HTML. have_text works differently, ...). We can tackle that later. This MR here is only about updating the gem, as prep work for !89240 (merged).

How to set up and validate locally

  • Have a look at the released changes here.
  • Check the resulting HTML of some of our components.
  • Run rspec specs/components/ to see the remaining deprecation warnings.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Thomas Hutterer

Merge request reports

Loading