lib/view_component/test_helpers.rb in actionview-component-1.15.0 vs lib/view_component/test_helpers.rb in actionview-component-1.16.0
- old
+ new
@@ -8,9 +8,13 @@
def page
Capybara::Node::Simple.new(@raw)
end
+ def refute_component_rendered
+ assert_no_selector("body")
+ end
+
def render_inline(component, **args, &block)
@raw = controller.view_context.render(component, args, &block)
Nokogiri::HTML.fragment(@raw)
end