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

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