ViewComponent / view_component

A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
https://viewcomponent.org
MIT License
3.17k stars 404 forks source link

Add `assert_component_rendered` test helper #2022

Open yoshiyoshiharu opened 3 weeks ago

yoshiyoshiharu commented 3 weeks ago

Feature request

Add assert_component_rendered test helper which tests assert_selector('body').

Motivation

As mentioned at https://github.com/ViewComponent/view_component/pull/263#pullrequestreview-378642179, I also think assert_component_rendered should be defined against refute_comoponent_rendered.