diff options
author | Eric Wong <e@80x24.org> | 2015-05-09 03:11:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-05-09 03:11:34 +0000 |
commit | 89fe543e561edc740cf93b5c017d7406546382af (patch) | |
tree | a405c8b4af5ef5eccaad892d53fdcdc993f79f51 /test/helper.rb | |
parent | 055b6db8dc03fa53c0a4e738cadde4fa4342a3e5 (diff) | |
download | yahns-89fe543e561edc740cf93b5c017d7406546382af.tar.gz |
We do not want rack.hijack users relying on kgio_* methods since kgio is trying to make itself obsolete (as Ruby itself adopts kgio features). This is a bit wonky since our common case tries to minimize object allocation by only using the Kgio::Socket derived class.
Diffstat (limited to 'test/helper.rb')
-rw-r--r-- | test/helper.rb | 10 |
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) |