lib/action_view/component/test_helpers.rb in actionview-component-1.7.0 vs lib/action_view/component/test_helpers.rb in actionview-component-1.8.0

- old
+ new

@@ -6,10 +6,10 @@ def render_inline(component, **args, &block) Nokogiri::HTML.fragment(controller.view_context.render(component, args, &block)) end def controller - @controller ||= ApplicationController.new.tap { |c| c.request = request } + @controller ||= Base.test_controller.constantize.new.tap { |c| c.request = request }.extend(Rails.application.routes.url_helpers) end def request @request ||= ActionDispatch::TestRequest.create end