summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/wiki_controller_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 9c59668c5..83c0f7de9 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -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