Methods
T
Instance Public methods
test_existing_nested_resource()
# File actionpack/test/template/url_helper_test.rb, line 716
def test_existing_nested_resource
  @controller = SessionsController.new

  get :show, :workshop_id => 1, :id => 1
  assert_equal "/workshops/1/sessions/1\n<a href=\"/workshops/1/sessions/1\">Session</a>", @response.body
end
test_existing_resource()
# File actionpack/test/template/url_helper_test.rb, line 702
def test_existing_resource
  @controller = WorkshopsController.new

  get :show, :id => 1
  assert_equal "/workshops/1\n<a href=\"/workshops/1\">Workshop</a>", @response.body
end
test_new_nested_resource()
# File actionpack/test/template/url_helper_test.rb, line 709
def test_new_nested_resource
  @controller = SessionsController.new

  get :index, :workshop_id => 1
  assert_equal "/workshops/1/sessions\n<a href=\"/workshops/1/sessions\">Session</a>", @response.body
end
test_new_resource()
# File actionpack/test/template/url_helper_test.rb, line 695
def test_new_resource
  @controller = WorkshopsController.new

  get :index
  assert_equal "/workshops\n<a href=\"/workshops\">Workshop</a>", @response.body
end