about summary refs log tree commit homepage
path: root/test/rails/app-2.2.2/app/controllers/foo_controller.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-07-26 23:44:04 +0000
committerEric Wong <normalperson@yhbt.net>2012-07-28 02:17:20 +0000
commit91a3cde091d4ae6ff436681f155b3907daae1c04 (patch)
treeb6c525daf103dcd829c6ff403d6220ad5a178ec4 /test/rails/app-2.2.2/app/controllers/foo_controller.rb
parentf4f2de4a526f3a88573f2f839e6865637c67dbe5 (diff)
downloadunicorn-91a3cde091d4ae6ff436681f155b3907daae1c04.tar.gz
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.
Diffstat (limited to 'test/rails/app-2.2.2/app/controllers/foo_controller.rb')
-rw-r--r--test/rails/app-2.2.2/app/controllers/foo_controller.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/rails/app-2.2.2/app/controllers/foo_controller.rb b/test/rails/app-2.2.2/app/controllers/foo_controller.rb
deleted file mode 100644
index 52b7947..0000000
--- a/test/rails/app-2.2.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