unicorn 4.3.1 - shutdown() fixes
[unicorn.git] / t / test-rails3.sh
blob907ef0de5ce9a744b59c001a6a5dd88ac9b249b9
1 . ./test-lib.sh
2 RAILS_VERSION=${RAILS_VERSION-3.0.0}
3 case $RUBY_VERSION in
4 1.8.7|1.9.2) ;;
5 *)
6 t_info "RUBY_VERSION=$RUBY_VERSION unsupported for Rails 3"
7 exit 0
8 ;;
9 esac
11 arch_gems=../tmp/isolate/ruby-$RUBY_VERSION/gems
12 rails_gems=../tmp/isolate/rails-$RAILS_VERSION/gems
13 rails_bin="$rails_gems/rails-$RAILS_VERSION/bin/rails"
14 if ! test -d "$arch_gems" || ! test -d "$rails_gems" || ! test -x "$rails_bin"
15 then
16 ( cd ../ && ./script/isolate_for_tests )
19 for i in $arch_gems/*-* $rails_gems/*-*
21 if test -d $i/lib
22 then
23 RUBYLIB=$(cd $i/lib && pwd):$RUBYLIB
25 done
27 export RUBYLIB