Method: Shoulda::ActionView::Macros#should_render_a_form
- Defined in:
- lib/shoulda/action_view/macros.rb
#should_render_a_form ⇒ Object
Macro that creates a test asserting that the rendered view contains a <form> element.
26 27 28 29 30 |
# File 'lib/shoulda/action_view/macros.rb', line 26 def should_render_a_form should "display a form" do assert_select "form", true, "The template doesn't contain a <form> element" end end |