Methods
- T
Instance Public methods
test_existing_nested_resource()
Link
# File actionview/test/template/url_helper_test.rb, line 889 def test_existing_nested_resource @controller = SessionsController.new get :show, params: { workshop_id: 1, id: 1 } assert_equal %Q{/workshops/1/sessions/1\n<a href="/workshops/1/sessions/1">Session</a>}, @response.body end
test_existing_nested_resource_with_params()
Link
# File actionview/test/template/url_helper_test.rb, line 896 def test_existing_nested_resource_with_params @controller = SessionsController.new get :edit, params: { workshop_id: 1, id: 1, format: "json" } assert_equal %Q{/workshops/1/sessions/1.json\n<a href="/workshops/1/sessions/1.json">Session</a>}, @response.body end
test_existing_resource()
Link
test_new_nested_resource()
Link