diff options
Diffstat (limited to 'spec/spec_helper.rb')
| -rw-r--r-- | spec/spec_helper.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6c3a947ba..8dabfce7f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -144,7 +144,12 @@ if $tempfilecount.nil?                      return unless @response.template.controller.instance_eval { integrate_views? }                      # And then if HTML, not a redirect (302, 301)                      if @response.content_type == "text/html" && ! [301,302,401].include?(@response.response_code) +                    if @response.template.instance_eval("@_memoized__pick_partial_template").nil?                          validate_html(@response.body) +                    else +                        # it's a partial +                        validate_as_body(@response.body) +                    end                      end                  end              end | 
