aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/spec_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 516ad998c..005ae8174 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -79,8 +79,8 @@ if $tempfilecount.nil?
# XXX Is there a better way to check this than calling a private method?
return unless @response.template.controller.instance_eval { integrate_views? }
- # And then if HTML, not a redirect (302, 301), and not a partial template (something/_something, such as in AJAX partial results)
- if @response.content_type == "text/html" && (@response.response_code != 302) && (@response.response_code != 301) && (@response.rendered_file.nil? || !@response.rendered_file.include?("/_"))
+ # And then if HTML, not a redirect (302, 301)
+ if @response.content_type == "text/html" && (@response.response_code != 302) && (@response.response_code != 301)
validate_html(@response.body)
end
end