diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 9adbe3962..b3c577e5d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -42,6 +42,10 @@ nav_order: 5 *Petrik de Heus* +* Fixed type declaration for `ViewComponent::TestHelpers.with_controller_class` parameter. + + *Graham Rogers* + ## 3.14.0 * Defer to built-in caching for language environment setup, rather than manually using `actions/cache` in CI. diff --git a/lib/view_component/test_helpers.rb b/lib/view_component/test_helpers.rb index 0dfbe7a85..3677763fb 100644 --- a/lib/view_component/test_helpers.rb +++ b/lib/view_component/test_helpers.rb @@ -155,7 +155,7 @@ def with_variant(variant) # end # ``` # - # @param klass [ActionController::Base] The controller to be used. + # @param klass [Class] The controller to be used. def with_controller_class(klass) old_controller = defined?(@vc_test_controller) && @vc_test_controller