Permalink
Browse files

Deprecated should_render_page_with_metadata [#155 state:resolved]

  • Loading branch information...
1 parent aab2157 commit eb7f1f8486f5d3847d5a6c195991ad4b2c38dafc @jferris jferris committed May 8, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/shoulda/action_view/macros.rb
View
3 lib/shoulda/action_view/macros.rb
@@ -31,6 +31,8 @@ def should_render_a_form
end
end
+ # Deprecated.
+ #
# Macro that creates a test asserting that the rendered view contains the selected metatags.
# Values can be string or Regexps.
# Example:
@@ -42,6 +44,7 @@ def should_render_a_form
# Example:
# should_render_page_with_metadata :title => /index/
def should_render_page_with_metadata(options)
+ warn "[DEPRECATION] should_render_page_with_metadata is deprecated."
options.each do |key, value|
should "have metatag #{key}" do
if key.to_sym == :title

0 comments on commit eb7f1f8

Please sign in to comment.