about summary refs log tree commit homepage
path: root/t/test_isolate.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 07:18:49 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 07:34:21 +0000
commit3a250fcfb9fcfa0ab3a8105821e670563025faa4 (patch)
tree2105314936e65bd9a9a18f1f7908ba99f221bbd9 /t/test_isolate.rb
parent2873361069dc2f8c793875316a0a2c9b8fa54761 (diff)
downloadrainbows-3a250fcfb9fcfa0ab3a8105821e670563025faa4.tar.gz
Cool.io is the new name for Rev.  We'll continue to support Rev
until Cool.io breaks backwards compatibility.  Rev may not be
supported if Cool.io is.
Diffstat (limited to 't/test_isolate.rb')
-rw-r--r--t/test_isolate.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/t/test_isolate.rb b/t/test_isolate.rb
index ad92f72..e49a7ee 100644
--- a/t/test_isolate.rb
+++ b/t/test_isolate.rb
@@ -23,7 +23,7 @@ Isolate.now!(opts) do
     gem 'sendfile', '1.0.0' # next Rubinius should support this
 
     gem 'iobuffer', '0.1.3'
-    gem 'rev', '0.3.2'
+    gem 'cool.io', '1.0.0'
 
     gem 'eventmachine', '0.12.10'
     gem 'sinatra', '1.0.0'
@@ -41,4 +41,9 @@ Isolate.now!(opts) do
 end
 
 $stdout.reopen(old_out)
-puts Dir["#{path}/gems/*-*/lib"].map { |x| File.expand_path(x) }.join(':')
+
+# don't load the old Rev if it exists, Cool.io 1.0.0 is compatible with it,
+# even for everything Revactor uses.
+dirs = Dir["#{path}/gems/*-*/lib"]
+dirs.delete_if { |x| x =~ %r{/rev-[\d\.]+/lib} }
+puts dirs.map { |x| File.expand_path(x) }.join(':')