From aba465e9d196737b07786a759ba320c89ae31c2e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 31 Mar 2009 17:34:10 -0700 Subject: Rails stack tests for unicorn_rails Very preliminary for now. Basically just sets up a basic controller and response. Requires git to clone the official Rails repository. --- test/rails/app-2.0.2/config/environment.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/rails/app-2.0.2/config/environment.rb (limited to 'test/rails/app-2.0.2/config/environment.rb') diff --git a/test/rails/app-2.0.2/config/environment.rb b/test/rails/app-2.0.2/config/environment.rb new file mode 100644 index 0000000..cb90b4b --- /dev/null +++ b/test/rails/app-2.0.2/config/environment.rb @@ -0,0 +1,14 @@ +unless defined? RAILS_GEM_VERSION + RAILS_GEM_VERSION = ENV['UNICORN_RAILS_VERSION'] +end + +# Bootstrap the Rails environment, frameworks, and default configuration +require File.join(File.dirname(__FILE__), 'boot') + +Rails::Initializer.run do |config| + config.frameworks -= [ :action_web_service, :action_mailer ] + config.action_controller.session = { + :session_key => "_unicorn_rails_test.#{rand}", + :secret => "#{rand}#{rand}#{rand}#{rand}", + } +end -- cgit v1.2.3-24-ge0c7