James Byrne wrote:
> Of the several ways available to test for this, what would be the
> preferred way to see if the following is present in an html document
> WITHOUT actually following the link?

Apparently this is the correct form:

   response.body.should have_tag("a[href=/users/new]")

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to