module RSpec::HtmlMatchers

def have_form action_url, method, options={}, &block

Other tags:
    See: #have_tag -

Other tags:
    Yield: - block with with_, see below
def have_form action_url, method, options={}, &block
  options[:with] ||= {}
  id = options[:with].delete(:id)
  tag = 'form'; tag << '#'+id if id
  options[:with].merge!(:action => action_url)
  options[:with].merge!(:method => method.to_s)
  have_tag tag, options, &block
end