Sha256: bf5a8bb5cc0536b8364dbdeba7f15c133483cec4043c548088d85c38f3599749

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

require "phlex/testing/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

5 entries across 5 versions & 1 rubygems

Version Path
phlex-rails-0.3.1 lib/phlex/testing/rails.rb
phlex-rails-0.3.0 lib/phlex/testing/rails.rb
phlex-rails-0.2.2 lib/phlex/testing/rails.rb
phlex-rails-0.2.1 lib/phlex/testing/rails.rb
phlex-rails-0.2.0 lib/phlex/testing/rails.rb