I'd appreciate suggestions for improving this matcher. Currently it
relies on the link saying "Delete", not whether it sends a delete
request when used.

    def have_delete_link(href)
      simple_matcher("a link href='#{href}'") do |given|
        selector = have_selector("a[href='#{href}']", :content =>
"Delete")
        selector.matches? given
      end
    end
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to