public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
doc patch for should_respond_with_content_type
dancroak (author)
Mon Sep 29 22:42:26 -0700 2008
commit  7b564422ea5774797e54d084230afde94c3a63be
tree    da661e9f3a20e38259f07ad4e5899fa2cd67cfd5
parent  37ca292bf1673ff71a37b625d51306ec2ee9b119
...
182
183
184
 
 
185
186
187
...
182
183
184
185
186
187
188
189
0
@@ -182,6 +182,8 @@ module ThoughtBot # :nodoc:
0
         # Example:
0
         #
0
         # should_respond_with_content_type 'application/rss+xml'
0
+ # should_respond_with_content_type :rss
0
+ # should_respond_with_content_type /rss/
0
         def should_respond_with_content_type(content_type)
0
           should "respond with content type of #{content_type}" do
0
             content_type = Mime::EXTENSION_LOOKUP[content_type.to_s].to_s if content_type.is_a? Symbol

Comments

    No one has commented yet.