lib/action_view/component/test_helpers.rb in actionview-component-1.5.3 vs lib/action_view/component/test_helpers.rb in actionview-component-1.6.0

- old
+ new

@@ -2,10 +2,10 @@ module ActionView module Component module TestHelpers def render_inline(component, **args, &block) - Nokogiri::HTML(controller.view_context.render(component, args, &block)).css("body > *") + Nokogiri::HTML.fragment(controller.view_context.render(component, args, &block)) end def controller @controller ||= ApplicationController.new.tap { |c| c.request = request } end