Namespace
Methods
T
Instance Public methods
test_named_route_path_shows_only_path()
# File actionview/test/template/url_helper_test.rb, line 722
def test_named_route_path_shows_only_path
  get :show_named_route, params: { kind: 'path' }
  assert_equal '/url_helper_controller_test/url_helper/show_named_route', @response.body
end
test_named_route_should_show_host_and_path_using_controller_default_url_options()
# File actionview/test/template/url_helper_test.rb, line 732
def test_named_route_should_show_host_and_path_using_controller_default_url_options
  class << @controller
    def default_url_options
      { host: 'testtwo.host' }
    end
  end

  get :show_named_route, params: { kind: 'url' }
  assert_equal 'http://testtwo.host/url_helper_controller_test/url_helper/show_named_route', @response.body
end
test_named_route_url_shows_host_and_path()
# File actionview/test/template/url_helper_test.rb, line 716
def test_named_route_url_shows_host_and_path
  get :show_named_route, params: { kind: 'url' }
  assert_equal 'http://test.host/url_helper_controller_test/url_helper/show_named_route',
    @response.body
end
test_recall_params_should_be_normalized()
# File actionview/test/template/url_helper_test.rb, line 743
def test_recall_params_should_be_normalized
  get :normalize_recall_params
  assert_equal '/url_helper_controller_test/url_helper/normalize_recall_params', @response.body
end
test_recall_params_should_normalize_id()
# File actionview/test/template/url_helper_test.rb, line 753
def test_recall_params_should_normalize_id
  get :show, params: { id: '123' }
  assert_equal 302, @response.status
  assert_equal 'http://test.host/url_helper_controller_test/url_helper/profile/123', @response.location

  get :show, params: { name: '123' }
  assert_equal 'ok', @response.body
end
test_recall_params_should_not_be_changed()
# File actionview/test/template/url_helper_test.rb, line 748
def test_recall_params_should_not_be_changed
  get :recall_params_not_changed
  assert_equal '/url_helper_controller_test/url_helper/show_url_for', @response.body
end
test_url_for_nil_returns_current_path()
# File actionview/test/template/url_helper_test.rb, line 727
def test_url_for_nil_returns_current_path
  get :nil_url_for
  assert_equal '/url_helper_controller_test/url_helper/nil_url_for', @response.body
end
test_url_for_shows_only_path()
# File actionview/test/template/url_helper_test.rb, line 711
def test_url_for_shows_only_path
  get :show_url_for
  assert_equal '/url_helper_controller_test/url_helper/show_url_for', @response.body
end
test_url_helper_can_be_overridden()
# File actionview/test/template/url_helper_test.rb, line 762
def test_url_helper_can_be_overridden
  get :override_url_helper
  assert_equal '/url_helper_controller_test/url_helper/override_url_helper/override', @response.body
end