Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deprecated should_render_a_form [#157 state:resolved]

  • Loading branch information...
commit efff1cc50555d6360dae2dd3f965d1cc6f881f40 1 parent 8e13aff
@jferris jferris authored
View
4 lib/shoulda/action_view/macros.rb
@@ -11,7 +11,6 @@ module ActionView # :nodoc:
# get :new
# end
#
- # should_render_a_form
# should_render_page_with_metadata :title => /index/
#
# should "do something else really cool" do
@@ -23,7 +22,10 @@ module ActionView # :nodoc:
module Macros
# Macro that creates a test asserting that the rendered view contains a <form> element.
+ #
+ # Deprecated.
def should_render_a_form
+ warn "[DEPRECATION] should_render_a_form is deprecated."
should "display a form" do
assert_select "form", true, "The template doesn't contain a <form> element"
end
View
1  test/functional/posts_controller_test.rb
@@ -93,6 +93,7 @@ def setup
setup { get :new, :user_id => users(:first) }
should_render_without_layout
should_not_set_the_flash
+ should_render_a_form
end
context "on POST to #create" do
Please sign in to comment.
Something went wrong with that request. Please try again.