aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 4400c0a28..8320a70a0 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -49,6 +49,9 @@ if $tempfilecount.nil?
# Call original process function
self.original_process(action, parameters, session, flash)
+ # 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), and not a partial template (something/_something, such as in AJAX partial results)
if @response.content_type == "text/html" and @response.response_code != 302 and not @response.rendered_file.include?("/_")
$tempfilecount = $tempfilecount + 1