Sha256: 85ddae689a449061dcaa7f25a7d6c5205fd16e358351faadddd2d6d2fe5c607b

Contents?: true

Size: 257 Bytes

Versions: 1

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
actionview-component-1.1.0 lib/action_view/component/test_helpers.rb