Sha256: 935d2ee82cfcfabeba9e460a79b154317a3cf6ef10635c9358a2547c831897b4

Contents?: true

Size: 315 Bytes

Versions: 4

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

require_relative "view_helper"

module Phlex::Testing
	module Rails
		module ViewHelper
			include Phlex::Testing::ViewHelper

			def view_context
				controller.view_context
			end

			def controller
				@controller ||= ActionView::TestCase::TestController.new
			end
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phlex-0.5.3 lib/phlex/testing/rails.rb
phlex-0.5.2 lib/phlex/testing/rails.rb
phlex-0.5.1 lib/phlex/testing/rails.rb
phlex-0.5.0 lib/phlex/testing/rails.rb