Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Deprecated should_render_page_with_metadata [#155 state:resolved]

  • Loading branch information...
commit eb7f1f8486f5d3847d5a6c195991ad4b2c38dafc 1 parent aab2157
Joe Ferris authored May 07, 2009

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  lib/shoulda/action_view/macros.rb
3  lib/shoulda/action_view/macros.rb
@@ -31,6 +31,8 @@ def should_render_a_form
31 31
         end
32 32
       end
33 33
 
  34
+      # Deprecated.
  35
+      #
34 36
       # Macro that creates a test asserting that the rendered view contains the selected metatags.
35 37
       # Values can be string or Regexps.
36 38
       # Example:
@@ -42,6 +44,7 @@ def should_render_a_form
42 44
       # Example:
43 45
       #   should_render_page_with_metadata :title => /index/
44 46
       def should_render_page_with_metadata(options)
  47
+        warn "[DEPRECATION] should_render_page_with_metadata is deprecated."
45 48
         options.each do |key, value|
46 49
           should "have metatag #{key}" do
47 50
             if key.to_sym == :title

0 notes on commit eb7f1f8

Please sign in to comment.
Something went wrong with that request. Please try again.