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
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users
