about summary refs log tree commit homepage
path: root/test/helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/helper.rb')
-rw-r--r--test/helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/helper.rb b/test/helper.rb
index 27adade..3e9f535 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -133,6 +133,16 @@ def require_exec(cmd)
   false
 end
 
+class DieIfUsed
+  def each
+    abort "body.each called after response hijack\n"
+  end
+
+  def close
+    abort "body.close called after response hijack\n"
+  end
+end
+
 require 'yahns'
 
 # needed for parallel (MT) tests)