Beginnings of a FileController (serving the file upload feature)
This commit is contained in:
parent
71407f9b9f
commit
12a34823a8
5 changed files with 83 additions and 26 deletions
24
test/functional/file_controller_test.rb
Normal file
24
test/functional/file_controller_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue