Namespace
Methods
- T
-
- test_named_route_path_shows_only_path,
- test_named_route_should_show_host_and_path_using_controller_default_url_options,
- test_named_route_url_shows_host_and_path,
- test_overriden_url_for_shows_only_path,
- test_recall_params_should_be_normalized,
- test_recall_params_should_normalize_id,
- test_recall_params_should_not_be_changed,
- test_url_for_nil_returns_current_path,
- test_url_for_shows_only_path,
- test_url_helper_can_be_overriden
Instance Public methods
test_named_route_path_shows_only_path()
Link
test_named_route_should_show_host_and_path_using_controller_default_url_options()
Link
# File actionpack/test/template/url_helper_test.rb, line 559 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()
Link
test_overriden_url_for_shows_only_path()
Link
test_recall_params_should_be_normalized()
Link
test_recall_params_should_normalize_id()
Link
# File actionpack/test/template/url_helper_test.rb, line 580 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()
Link
test_url_for_nil_returns_current_path()
Link
test_url_for_shows_only_path()
Link