2 RAILS_VERSION
=${RAILS_VERSION-3.0.0.beta3}
9 t_info
"RUBY_VERSION=$RUBY_VERSION unsupported for Rails 3"
14 arch_gems
=..
/tmp
/isolate
/ruby-
$RUBY_VERSION/gems
15 rails_gems
=..
/tmp
/isolate
/rails-
$RAILS_VERSION/gems
16 rails_bin
="$rails_gems/rails-$RAILS_VERSION/bin/rails"
17 if ! test -d "$arch_gems" ||
! test -d "$rails_gems" ||
! test -x "$rails_bin"
19 ( cd ..
/ && $RAKE isolate
)
22 for i
in $arch_gems/*-* $rails_gems/*-*
26 RUBYLIB
=$
(cd $i/lib
&& pwd):$RUBYLIB
32 t_plan
3 "Rails 3 (beta) tests"
34 t_begin
"setup and start" && {
35 rails3_app
=$
(cd rails3-app
&& pwd)
39 ( cd $rails3_app && tar cf
- .
) |
tar xf
-
40 $RAKE db
:sessions
:create
43 unicorn
-D -c $unicorn_config
48 t_begin
"hit with curl" && {
49 curl
-v http
://$listen/ ||
:
52 t_begin
"killing succeeds" && {