Beginnings of a FileController (serving the file upload feature)

This commit is contained in:
Alexey Verkhovsky 2005-01-22 01:35:00 +00:00
parent 71407f9b9f
commit 12a34823a8
5 changed files with 83 additions and 26 deletions

View file

@ -0,0 +1,24 @@
#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'file_controller'
# Raise errors beyond the default web-based presentation
class FileController; def rescue_action(e) logger.error(e); raise e end; end
class FileControllerTest < Test::Unit::TestCase
def setup
setup_test_wiki
setup_controller_test
end
def tear_down
tear_down_wiki
end
def test_file
process 'file', 'id' => 'foo.tgz'
end
end