uploading pics when not found in the file yard (same as for files)
This commit is contained in:
parent
8263e4bfcd
commit
44eea43940
5 changed files with 36 additions and 6 deletions
|
@ -56,5 +56,12 @@ class FileControllerTest < Test::Unit::TestCase
|
|||
assert_success
|
||||
assert_equal File.size("#{FILE_AREA}/rails.gif"), r.binary_content.size
|
||||
end
|
||||
|
||||
def test_pic_unknown_pic
|
||||
r = process 'pic', 'web' => 'wiki1', 'id' => 'non-existant.gif'
|
||||
|
||||
assert_success
|
||||
assert_rendered_file 'file/file'
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue