Sha256: e990e12e104c8ea96886383d16151a99d188a2337053254ff92a12b629ad3de1

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

require "phlex/rails"
require "phlex/testing"

module Phlex::Testing::RailsContext
	def view_context
		controller.view_context
	end

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

Phlex::Testing::SGML.include(
	Phlex::Testing::RailsContext,
)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phlex-rails-2.0.0.beta2 lib/phlex/rails/testing.rb
phlex-rails-2.0.0.beta1 lib/phlex/rails/testing.rb