Sha256: fde5ad0a8ef8a2aa33764ab6497ad6ec87f6d3f51e4691d5cad27fb6a35db9ad

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

# frozen_string_literal: true

module ActionView
  module ComponentTestHelpers
    def render_component(component, &block)
      Nokogiri::HTML(component.render_in(ApplicationController.new.view_context, &block))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
actionview-component-1.0.1 lib/action_view/component_test_helpers.rb
actionview-component-1.0.0 lib/action_view/component_test_helpers.rb