summaryrefslogtreecommitdiffstats
path: root/test/integration/attachments_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/attachments_test.rb')
-rw-r--r--test/integration/attachments_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb
index 6fd58ed5f..0b3bf1862 100644
--- a/test/integration/attachments_test.rb
+++ b/test/integration/attachments_test.rb
@@ -77,8 +77,9 @@ class AttachmentsTest < Redmine::IntegrationTest
token = ajax_upload('myupload.jpg', 'JPEG content')
- post '/issues/preview/new/ecookbook', :params => {
- :issue => {:tracker_id => 1, :description => 'Inline upload: !myupload.jpg!'},
+ post '/issues/preview', :params => {
+ :issue => {:tracker_id => 1, :project_id => 'ecookbook'},
+ :text => 'Inline upload: !myupload.jpg!',
:attachments => {'1' => {:filename => 'myupload.jpg', :description => 'My uploaded file', :token => token}}
}
assert_response :success