aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/validate_html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/validate_html.rb')
-rw-r--r--spec/support/validate_html.rb12
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