Namespace
Methods
T
Instance Public methods
test_named_route_path_shows_only_path()
# File actionview/test/template/url_helper_test.rb, line 669
def test_named_route_path_shows_only_path
  get :show_named_route, 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 679
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, 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 663
def test_named_route_url_shows_host_and_path
  get :show_named_route, kind: 'url'
  assert_equal 'http://test.host/url_helper_controller_test/url_helper/show_named_route',
    @response.body
end
test_overridden_url_for_shows_only_path()
# File actionview/test/template/url_helper_test.rb, line 658
def test_overridden_url_for_shows_only_path
  get :show_overridden_url_for
  assert_equal '/url_helper_controller_test/url_helper/show_url_for', @response.body
end
test_recall_params_should_be_normalized()
# File actionview/test/template/url_helper_test.rb, line 690
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 700
def test_recall_params_should_normalize_id
  get :show, id: '123'
  assert_equal 302, @response.status
  assert_equal 'http://test.host/url_helper_controller_test/url_helper/profile/123', @response.location

  get :show, name: '123'
  assert_equal 'ok', @response.body
end
test_recall_params_should_not_be_changed()
# File actionview/test/template/url_helper_test.rb, line 695
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 674
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 653
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 709
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