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. --- .../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 --- 3 files changed, 44 deletions(-) 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 (limited to 'test/rails/app-2.0.2/app') 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 -- cgit v1.2.3-24-ge0c7