跳至內容 跳至搜尋
方法
C
N
已包含模塊

屬性

[RW] controller_path

覆寫 AbstractController::Base#controller_path

[RW] params
[RW] request
[RW] response

類別公共方法

controller_name()

# File actionview/lib/action_view/test_case.rb, line 30
def self.controller_name
  "test"
end

new()

# File actionview/lib/action_view/test_case.rb, line 34
def initialize
  super
  self.class.controller_path = ""
  @request = ActionController::TestRequest.create(self.class)
  @response = ActionDispatch::TestResponse.new

  @request.env.delete("PATH_INFO")
  @params = ActionController::Parameters.new
end

執行個體公共方法

controller_path=(path)

# File actionview/lib/action_view/test_case.rb, line 26
def controller_path=(path)
  self.class.controller_path = path
end