module Shoulda::ActionView::Macros

def should_render_a_form

Macro that creates a test asserting that the rendered view contains a
element.
def should_render_a_form
  should "display a form" do
    assert_select "form", true, "The template doesn't contain a <form> element"
  end
end