diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-03 12:48:22 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-03 12:48:22 +0000 |
commit | 04b8a72931d176caab599abda8d5445d679a43c5 (patch) | |
tree | f94df2653e32ec31e7c3470d0169fb03f4cc68f3 /spec/spec_helper.rb | |
parent | d57fbf4d8ccbacc15746c1685e0785400e55f73e (diff) |
Remove clause seemingly not needed in new Rails
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
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 |