diff options
-rw-r--r-- | spec/support/validate_html.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/support/validate_html.rb b/spec/support/validate_html.rb index 558e562e2..09c415936 100644 --- a/spec/support/validate_html.rb +++ b/spec/support/validate_html.rb @@ -48,12 +48,12 @@ if $tempfilecount.nil? return if @response.body.empty? # And then if HTML, not a redirect (302, 301) if @response.content_type == "text/html" && ! [301,302,401].include?(@response.response_code) - if !is_fragment - validate_html(@response.body) - else - # it's a partial - validate_as_body(@response.body) - end + if !is_fragment + validate_html(@response.body) + else + # it's a partial + validate_as_body(@response.body) + end end end end |