about summary refs log tree commit homepage
path: root/t/test_isolate.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-04 01:25:29 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-04 01:36:30 +0000
commitf66c59d7b259e5784c9da87df1a6f1dbca160577 (patch)
tree50009f915932d0b423b114348095953a6f1257d0 /t/test_isolate.rb
parente7690caedf80a1af2b6145d1b8f108ea42ee9a29 (diff)
downloadrainbows-f66c59d7b259e5784c9da87df1a6f1dbca160577.tar.gz
We don't need tmp/ in our top level directory
Diffstat (limited to 't/test_isolate.rb')
-rw-r--r--t/test_isolate.rb39
1 files changed, 39 insertions, 0 deletions
diff --git a/t/test_isolate.rb b/t/test_isolate.rb
new file mode 100644
index 0000000..9e14b3f
--- /dev/null
+++ b/t/test_isolate.rb
@@ -0,0 +1,39 @@
+require 'rubygems'
+require 'isolate'
+
+path = "tmp/isolate/ruby-#{RUBY_VERSION}"
+opts = {
+  :system => false,
+  # we want "ruby-1.8.7" and not "ruby-1.8", so disable multiruby
+  :multiruby => false,
+  :path => path,
+}
+
+old_out = $stdout.dup
+$stdout.reopen($stderr)
+
+Isolate.now!(opts) do
+  gem 'rack', '1.1.0'
+  gem 'unicorn', '0.99.0'
+
+  gem 'iobuffer', '0.1.3'
+  gem 'rev', '0.3.2'
+
+  gem 'eventmachine', '0.12.10'
+
+  gem 'sinatra', '0.9.4'
+  gem 'async_sinatra', '0.1.5'
+
+  gem 'neverblock', '0.1.6.2'
+
+  if defined?(::Fiber)
+    gem 'case', '0.5'
+    gem 'revactor', '0.1.5'
+    gem 'rack-fiber_pool', '0.9.0'
+  end
+
+  gem 'cramp', '0.11'
+end
+
+$stdout.reopen(old_out)
+puts Dir["#{path}/gems/*-*/lib"].map { |x| File.expand_path(x) }.join(':')