public
Rubygem
Description: RSpec extension library for Ruby on Rails
Homepage:
Clone URL: git://github.com/dchelimsky/rspec-rails.git
fixed bug created by change in edge-rails sometimes returning nil for 
headers['Content-Type']
David Chelimsky (author)
Sun Aug 17 11:38:04 -0700 2008
commit  416adcb071c1aec966e16a50db8f2df56c0d0521
tree    d849761c72b834ceecb39a483a6b8444bd7e80be
parent  705355b75b7555940a1d49442ffe5ef5ccccd7a7
...
16
17
18
 
19
20
21
...
16
17
18
19
20
21
22
0
@@ -16,6 +16,7 @@ module Spec # :nodoc:
0
         def matches?(response_or_text, &block)
0
           if ActionController::TestResponse === response_or_text and
0
                    response_or_text.headers.key?('Content-Type') and
0
+                   response_or_text.headers['Content-Type'] and
0
                    response_or_text.headers['Content-Type'].to_sym == :xml
0
             @args.unshift(HTML::Document.new(response_or_text.body, false, true).root)           
0
           elsif String === response_or_text

Comments