Class: ViewComponentsSystemTestController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/view_components_system_test_controller.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.temp_dirObject



7
8
9
# File 'app/controllers/view_components_system_test_controller.rb', line 7

def self.temp_dir
  @_tmpdir ||= FileUtils.mkdir_p("./tmp/view_components/").first
end

Instance Method Details

#system_test_entrypointObject



11
12
13
# File 'app/controllers/view_components_system_test_controller.rb', line 11

def system_test_entrypoint
  render file: @path
end