Sha256: c74ed8b9184719d35c85379f01c9b1ed89da8fd5ffcdfd5e5fe81ed615a06794

Contents?: true

Size: 622 Bytes

Versions: 53

Compression:

Stored size: 622 Bytes

Contents

#!/bin/sh
. ./test-rails3.sh

t_plan 4 "Rails 3 (beta) tests for config.ru haters"

t_begin "setup and start" && {
	rails3_app=$(cd rails3-app && pwd)
	rm -rf $t_pfx.app
	mkdir $t_pfx.app
	cd $t_pfx.app
	( cd $rails3_app && tar cf - . ) | tar xf -
	rm config.ru
	$RAKE db:sessions:create
	$RAKE db:migrate
	unicorn_setup
	unicorn_rails -D -c $unicorn_config
	unicorn_wait_start
}

t_begin "static file serving works" && {
	test x"$(curl -sSf http://$listen/x.txt)" = xHELLO
}

# add more tests here
t_begin "hit with curl" && {
	curl -v http://$listen/ || :
}

t_begin "killing succeeds" && {
	kill $unicorn_pid
}

t_done

Version data entries

53 entries across 53 versions & 4 rubygems

Version Path
unicorn-3.6.0 t/t0301-rails3-missing-config-ru.sh
unicorn-3.5.0 t/t0301-rails3-missing-config-ru.sh
unicorn-3.4.0 t/t0301-rails3-missing-config-ru.sh
unicorn-3.3.1 t/t0301-rails3-missing-config-ru.sh
unicorn-1.1.6 t/t0301-rails3-missing-config-ru.sh
unicorn-3.3.0 t/t0301-rails3-missing-config-ru.sh
unicorn-3.2.1 t/t0301-rails3-missing-config-ru.sh
unicorn-3.1.0 t/t0301-rails3-missing-config-ru.sh
unicorn-3.0.1 t/t0301-rails3-missing-config-ru.sh
unicorn-3.0.0 t/t0301-rails3-missing-config-ru.sh
unicorn-3.0.0pre2 t/t0301-rails3-missing-config-ru.sh
unicorn-3.0.0pre1.9.g86d2 t/t0301-rails3-missing-config-ru.sh
unicorn-2.0.1 t/t0301-rails3-missing-config-ru.sh
unicorn-2.0.0.2.ga6d9 t/t0301-rails3-missing-config-ru.sh
unicorn-3.0.0pre1 t/t0301-rails3-missing-config-ru.sh
unicorn-2.0.0 t/t0301-rails3-missing-config-ru.sh
unicorn-1.1.5 t/t0301-rails3-missing-config-ru.sh
unicorn-1.0.2 t/t0301-rails3-missing-config-ru.sh
unicorn-2.0.0pre3 t/t0301-rails3-missing-config-ru.sh
unicorn-2.0.0pre2.4.gf202 t/t0301-rails3-missing-config-ru.sh