Methods
P
S
T
Instance Public methods
post()
# File actionpack/test/controller/test_case_test.rb, line 1185
def post
  render plain: request.fullpath
end
project()
# File actionpack/test/controller/test_case_test.rb, line 1189
def project
  render plain: request.fullpath
end
setup()
# File actionpack/test/controller/test_case_test.rb, line 1183
def setup
  @controller = Class.new(ActionController::Base) do
    def post
      render plain: request.fullpath
    end

    def project
      render plain: request.fullpath
    end
  end.new

  @routes = ActionDispatch::Routing::RouteSet.new.tap do |r|
    r.draw do
      get '/posts/:id', to: 'anonymous#post', bucket_type: 'post'
      get '/projects/:id', to: 'anonymous#project', defaults: { bucket_type: 'project' }
    end
  end
end
test_route_default_is_not_required_for_building_request_uri()
# File actionpack/test/controller/test_case_test.rb, line 1207
def test_route_default_is_not_required_for_building_request_uri
  get :project, params: { id: 2 }
  assert_equal '/projects/2', @response.body
end
test_route_option_can_be_passed_via_process()
# File actionpack/test/controller/test_case_test.rb, line 1202
def test_route_option_can_be_passed_via_process
  get :post, params: { id: 1, bucket_type: 'post'}
  assert_equal '/posts/1', @response.body
end