Methods
I
S
T
Instance Public methods
index()
# File actionpack/test/controller/test_case_test.rb, line 1162
def index
  render plain: params[:controller]
end
setup()
# File actionpack/test/controller/test_case_test.rb, line 1160
def setup
  @controller = Class.new(ActionController::Base) do
    def index
      render plain: params[:controller]
    end
  end.new

  @routes = ActionDispatch::Routing::RouteSet.new.tap do |r|
    r.draw do
      ActiveSupport::Deprecation.silence do
        get ':controller(/:action(/:id))'
      end
    end
  end
end
test_controller_name()
# File actionpack/test/controller/test_case_test.rb, line 1176
def test_controller_name
  get :index
  assert_equal 'anonymous', @response.body
end