title: How to use assert_select to test for presence of a given link?
body: <p>My page should contain a link that looks like <code>&lt;a href="/desired_path/1"&gt;Click to go&lt;/a&gt;</code>.</p>
  
  <p>How would you test for that using assert_select? I want to check for the presence of an <code>a</code> tag with <code>href="/desired_path/1"</code>. How do you test the attributes of a tag?</p>
  
  <p>Are there any resources to explain how to use assert_select? I read the Guides and API documentation, but didn't figure it out. Are there any recommended better ways of doing this?</p>
  
  <p>I am working in Rails 3 and using the built-in test framework.</p>
  
  <p>Thanks.</p>