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

    def project
      render :text => 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 955
def test_route_default_is_not_required_for_building_request_uri
  get :project, :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 950
def test_route_option_can_be_passed_via_process
  get :post, :id => 1, :bucket_type => 'post'
  assert_equal '/posts/1', @response.body
end