From 91a3cde091d4ae6ff436681f155b3907daae1c04 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 26 Jul 2012 23:44:04 +0000 Subject: remove Rails-oriented integration tests It's too much overhead to keep Rails-specific tests working, especially when it's hauling in an ancient version of SQLite3. Since Rails 3 has settled down with Rack and unicorn_rails is unlikely to need changing in the future, we can drop these tests. --- test/rails/app-2.0.2/.gitignore | 2 -- test/rails/app-2.0.2/Rakefile | 7 ----- .../rails/app-2.0.2/app/controllers/application.rb | 4 --- .../app-2.0.2/app/controllers/foo_controller.rb | 36 ---------------------- .../app-2.0.2/app/helpers/application_helper.rb | 4 --- test/rails/app-2.0.2/config/boot.rb | 11 ------- test/rails/app-2.0.2/config/database.yml | 12 -------- test/rails/app-2.0.2/config/environment.rb | 17 ---------- .../app-2.0.2/config/environments/development.rb | 8 ----- .../app-2.0.2/config/environments/production.rb | 5 --- test/rails/app-2.0.2/config/routes.rb | 6 ---- test/rails/app-2.0.2/db/.gitignore | 0 test/rails/app-2.0.2/log/.gitignore | 1 - test/rails/app-2.0.2/public/404.html | 1 - test/rails/app-2.0.2/public/500.html | 1 - 15 files changed, 115 deletions(-) delete mode 100644 test/rails/app-2.0.2/.gitignore delete mode 100644 test/rails/app-2.0.2/Rakefile delete mode 100644 test/rails/app-2.0.2/app/controllers/application.rb delete mode 100644 test/rails/app-2.0.2/app/controllers/foo_controller.rb delete mode 100644 test/rails/app-2.0.2/app/helpers/application_helper.rb delete mode 100644 test/rails/app-2.0.2/config/boot.rb delete mode 100644 test/rails/app-2.0.2/config/database.yml delete mode 100644 test/rails/app-2.0.2/config/environment.rb delete mode 100644 test/rails/app-2.0.2/config/environments/development.rb delete mode 100644 test/rails/app-2.0.2/config/environments/production.rb delete mode 100644 test/rails/app-2.0.2/config/routes.rb delete mode 100644 test/rails/app-2.0.2/db/.gitignore delete mode 100644 test/rails/app-2.0.2/log/.gitignore delete mode 100644 test/rails/app-2.0.2/public/404.html delete mode 100644 test/rails/app-2.0.2/public/500.html (limited to 'test/rails/app-2.0.2') diff --git a/test/rails/app-2.0.2/.gitignore b/test/rails/app-2.0.2/.gitignore deleted file mode 100644 index f451f91..0000000 --- a/test/rails/app-2.0.2/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/tmp -/vendor diff --git a/test/rails/app-2.0.2/Rakefile b/test/rails/app-2.0.2/Rakefile deleted file mode 100644 index fbebfca..0000000 --- a/test/rails/app-2.0.2/Rakefile +++ /dev/null @@ -1,7 +0,0 @@ -require(File.join(File.dirname(__FILE__), 'config', 'boot')) - -require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' - -require 'tasks/rails' diff --git a/test/rails/app-2.0.2/app/controllers/application.rb b/test/rails/app-2.0.2/app/controllers/application.rb deleted file mode 100644 index e7bb740..0000000 --- a/test/rails/app-2.0.2/app/controllers/application.rb +++ /dev/null @@ -1,4 +0,0 @@ -# -*- encoding: binary -*- - -class ApplicationController < ActionController::Base -end diff --git a/test/rails/app-2.0.2/app/controllers/foo_controller.rb b/test/rails/app-2.0.2/app/controllers/foo_controller.rb deleted file mode 100644 index 52b7947..0000000 --- a/test/rails/app-2.0.2/app/controllers/foo_controller.rb +++ /dev/null @@ -1,36 +0,0 @@ -# -*- encoding: binary -*- - -require 'digest/sha1' -class FooController < ApplicationController - def index - render :text => "FOO\n" - end - - def xcookie - cookies["foo"] = "cookie #$$" - render :text => "" - end - - def xnotice - flash[:notice] = "session #$$" - render :text => "" - end - - def xpost - if request.post? - digest = Digest::SHA1.new - out = "params: #{params.inspect}\n" - if file = params[:file] - loop do - buf = file.read(4096) or break - digest.update(buf) - end - out << "sha1: #{digest.to_s}\n" - end - headers['content-type'] = 'text/plain' - render :text => out - else - render :status => 403, :text => "need post\n" - end - end -end diff --git a/test/rails/app-2.0.2/app/helpers/application_helper.rb b/test/rails/app-2.0.2/app/helpers/application_helper.rb deleted file mode 100644 index d9889b3..0000000 --- a/test/rails/app-2.0.2/app/helpers/application_helper.rb +++ /dev/null @@ -1,4 +0,0 @@ -# -*- encoding: binary -*- - -module ApplicationHelper -end diff --git a/test/rails/app-2.0.2/config/boot.rb b/test/rails/app-2.0.2/config/boot.rb deleted file mode 100644 index 84a5c18..0000000 --- a/test/rails/app-2.0.2/config/boot.rb +++ /dev/null @@ -1,11 +0,0 @@ -# -*- encoding: binary -*- - -unless defined?(RAILS_ROOT) - root_path = File.join(File.dirname(__FILE__), '..') - RAILS_ROOT = root_path -end - -unless defined?(Rails::Initializer) - require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" - Rails::Initializer.run(:set_load_path) -end diff --git a/test/rails/app-2.0.2/config/database.yml b/test/rails/app-2.0.2/config/database.yml deleted file mode 100644 index 9f77843..0000000 --- a/test/rails/app-2.0.2/config/database.yml +++ /dev/null @@ -1,12 +0,0 @@ -development: - adapter: sqlite3 - database: db/development.sqlite3 - timeout: 5000 -test: - adapter: sqlite3 - database: db/test.sqlite3 - timeout: 5000 -production: - adapter: sqlite3 - database: db/production.sqlite3 - timeout: 5000 diff --git a/test/rails/app-2.0.2/config/environment.rb b/test/rails/app-2.0.2/config/environment.rb deleted file mode 100644 index 9961f08..0000000 --- a/test/rails/app-2.0.2/config/environment.rb +++ /dev/null @@ -1,17 +0,0 @@ -# -*- encoding: binary -*- - -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_store = :active_record_store - config.action_controller.session = { - :session_key => "_unicorn_rails_test.#{rand}", - :secret => "#{rand}#{rand}#{rand}#{rand}", - } -end diff --git a/test/rails/app-2.0.2/config/environments/development.rb b/test/rails/app-2.0.2/config/environments/development.rb deleted file mode 100644 index 5e0f1ca..0000000 --- a/test/rails/app-2.0.2/config/environments/development.rb +++ /dev/null @@ -1,8 +0,0 @@ -# -*- encoding: binary -*- - -config.cache_classes = false -config.whiny_nils = true -config.action_controller.consider_all_requests_local = true -config.action_controller.perform_caching = false -config.action_view.cache_template_extensions = false -config.action_view.debug_rjs = true diff --git a/test/rails/app-2.0.2/config/environments/production.rb b/test/rails/app-2.0.2/config/environments/production.rb deleted file mode 100644 index 1e049b2..0000000 --- a/test/rails/app-2.0.2/config/environments/production.rb +++ /dev/null @@ -1,5 +0,0 @@ -# -*- encoding: binary -*- - -config.cache_classes = true -config.action_controller.consider_all_requests_local = false -config.action_controller.perform_caching = true diff --git a/test/rails/app-2.0.2/config/routes.rb b/test/rails/app-2.0.2/config/routes.rb deleted file mode 100644 index 70816dc..0000000 --- a/test/rails/app-2.0.2/config/routes.rb +++ /dev/null @@ -1,6 +0,0 @@ -# -*- encoding: binary -*- - -ActionController::Routing::Routes.draw do |map| - map.connect ':controller/:action/:id.:format' - map.connect ':controller/:action/:id' -end diff --git a/test/rails/app-2.0.2/db/.gitignore b/test/rails/app-2.0.2/db/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/test/rails/app-2.0.2/log/.gitignore b/test/rails/app-2.0.2/log/.gitignore deleted file mode 100644 index 397b4a7..0000000 --- a/test/rails/app-2.0.2/log/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.log diff --git a/test/rails/app-2.0.2/public/404.html b/test/rails/app-2.0.2/public/404.html deleted file mode 100644 index 44d986c..0000000 --- a/test/rails/app-2.0.2/public/404.html +++ /dev/null @@ -1 +0,0 @@ -404 Not Found diff --git a/test/rails/app-2.0.2/public/500.html b/test/rails/app-2.0.2/public/500.html deleted file mode 100644 index e534a49..0000000 --- a/test/rails/app-2.0.2/public/500.html +++ /dev/null @@ -1 +0,0 @@ -500 Internal Server Error -- cgit v1.2.3-24-ge0c7