socket_helper: no reason to check for logger method
[unicorn.git] / t / test-rails3.sh
blobbeeccf557bd827ec5c38a35651e957038e9d2168
1 . ./test-lib.sh
2 RAILS_VERSION=${RAILS_VERSION-3.0.0.beta4}
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 ../ && $RAKE isolate )
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