Skip to content

Commit

Permalink
Rename accessor method name: rendered_component => rendered_content
Browse files Browse the repository at this point in the history
In ViewComponent#1347, rendered component has been renamed to rendered content.

But its method name seems to be the same as before.
  • Loading branch information
yhirano55 committed Jun 1, 2022
1 parent 0b55bb7 commit a0b7e0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ title: Changelog

## main

* Rename accessor method name: `rendered_component` => `rendered_content`.

*Yoshiyuki Hirano*

## 2.56.0

* Introduce experimental `render_preview` test helper. Note: `@rendered_component` in `TestHelpers` has been renamed to `@rendered_content`.
Expand Down
2 changes: 1 addition & 1 deletion lib/view_component/test_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def refute_component_rendered
end

# @private
attr_reader :rendered_component
attr_reader :rendered_content

# Render a component inline. Internally sets `page` to be a `Capybara::Node::Simple`,
# allowing for Capybara assertions to be used:
Expand Down

0 comments on commit a0b7e0a

Please sign in to comment.