Improved behavior of JavaScript in the author field [from I2 patch by court3nay]
This commit is contained in:
parent
35b77f6440
commit
dea8d70c48
6 changed files with 28 additions and 39 deletions
|
@ -121,12 +121,12 @@ class FileControllerTest < Test::Unit::TestCase
|
|||
|
||||
def test_uploads_blocking
|
||||
set_web_property :allow_uploads, true
|
||||
r = process 'file', 'web' => 'wiki1', 'id' => 'filename'
|
||||
process 'file', 'web' => 'wiki1', 'id' => 'filename'
|
||||
assert_success
|
||||
|
||||
set_web_property :allow_uploads, false
|
||||
r = process 'file', 'web' => 'wiki1', 'id' => 'filename'
|
||||
assert_equal '403 Forbidden', r.headers['Status']
|
||||
process 'file', 'web' => 'wiki1', 'id' => 'filename'
|
||||
assert_response 403
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue