Topic: How to test links in an integration test

I'm trying something like this

  test "all links" do
    get "home"
    assert_select "a" do |links|
      links.each do |link|
        puts "@@@@ link #{link}"
        get link
        assert_response :success
      end
    end
  end

I realize this is going to follow links that I don't want to have followed but I am just looking for the right way of doing this before I go any further with excluding the links that I don't want followed

Am I on the right track?
Thanks

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)