Namespace
Methods
S
T
W
Included Modules
Instance Public methods
setup()
# File rails/actionpack/test/template/url_helper_test.rb, line 273
def setup
  @request    = ActionController::TestRequest.new
  @response   = ActionController::TestResponse.new
  @controller = UrlHelperController.new
end
test_named_route_path_shows_only_path()
# File rails/actionpack/test/template/url_helper_test.rb, line 291
def test_named_route_path_shows_only_path
  with_url_helper_routing do
    get :show_named_route, :kind => 'path'
    assert_equal '/url_helper_with_controller/show_named_route', @response.body
  end
end
test_named_route_shows_host_and_path()
# File rails/actionpack/test/template/url_helper_test.rb, line 284
def test_named_route_shows_host_and_path
  with_url_helper_routing do
    get :show_named_route, :kind => 'url'
    assert_equal 'http://test.host/url_helper_with_controller/show_named_route', @response.body
  end
end
test_url_for_shows_only_path()
# File rails/actionpack/test/template/url_helper_test.rb, line 279
def test_url_for_shows_only_path
  get :show_url_for
  assert_equal '/url_helper_with_controller/show_url_for', @response.body
end
Instance Protected methods
with_url_helper_routing()
# File rails/actionpack/test/template/url_helper_test.rb, line 299
def with_url_helper_routing
  with_routing do |set|
    set.draw do |map|
      map.show_named_route 'url_helper_with_controller/show_named_route', :controller => 'url_helper_with_controller', :action => 'show_named_route'
    end
    yield
  end
end