Sha256: e3a71fbb82abfc95827c77153a8683ed4946dfe60f8cbc3e0b12466309466607

Contents?: true

Size: 322 Bytes

Versions: 21

Compression:

Stored size: 322 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

21 entries across 21 versions & 1 rubygems

Version Path
phlex-rails-1.2.2 lib/phlex/testing/rails/view_helper.rb
phlex-rails-1.2.1 lib/phlex/testing/rails/view_helper.rb
phlex-rails-1.2.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-1.1.2 lib/phlex/testing/rails/view_helper.rb
phlex-rails-1.1.1 lib/phlex/testing/rails/view_helper.rb
phlex-rails-1.1.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-1.0.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.10.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.8.1 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.9.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.8.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.7.1 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.7.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.6.1 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.6.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.5.1 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.5.0 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.4.2 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.4.1 lib/phlex/testing/rails/view_helper.rb
phlex-rails-0.4.0 lib/phlex/testing/rails/view_helper.rb