Module: Phlex::Testing::Rails::ViewHelper

Includes:
ViewHelper
Defined in:
lib/phlex/testing/rails/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#controllerObject



14
15
16
# File 'lib/phlex/testing/rails/view_helper.rb', line 14

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

#view_contextObject



10
11
12
# File 'lib/phlex/testing/rails/view_helper.rb', line 10

def view_context
	controller.view_context
end