code format cleanup WikiControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12634 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6097d6b1bf
commit
a313d540a6
|
@ -948,7 +948,10 @@ class WikiControllerTest < ActionController::TestCase
|
|||
@request.session[:user_id] = 2
|
||||
assert_difference 'Attachment.count' do
|
||||
post :add_attachment, :project_id => 1, :id => 'CookBook_documentation',
|
||||
:attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain'), 'description' => 'test file'}}
|
||||
:attachments => {
|
||||
'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain'),
|
||||
'description' => 'test file'}
|
||||
}
|
||||
end
|
||||
attachment = Attachment.first(:order => 'id DESC')
|
||||
assert_equal Wiki.find(1).find_page('CookBook_documentation'), attachment.container
|
||||
|
|
Loading…
Reference in New Issue