From cdce7ff191313bd99a31d26ddca5a5c8be766695 Mon Sep 17 00:00:00 2001 From: Jon Leighton <j@jonathanleighton.com> Date: Sat, 4 Jun 2011 20:15:52 +0100 Subject: Force RAILS_ENV=development in rackup_test.rb. This fixes a problem on the CI server. For some reason the RAILS_ENV on the CI server is production, which means that the ActionDispatch::Static middleware is not used, and so the request in 'config.ru can be racked up' returns a 404 rather than a 200. --- railties/test/application/rackup_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/railties/test/application/rackup_test.rb b/railties/test/application/rackup_test.rb index b0a9925890..885355fd46 100644 --- a/railties/test/application/rackup_test.rb +++ b/railties/test/application/rackup_test.rb @@ -11,10 +11,16 @@ module ApplicationTests end def setup + @prev_rails_env = ENV['RAILS_ENV'] + ENV['RAILS_ENV'] = 'development' build_app boot_rails end + def teardown + ENV['RAILS_ENV'] = @prev_rails_env + end + test "rails app is present" do assert File.exist?(app_path("config")) end -- cgit v1.2.3