comparison test/integration/issues_test.rb @ 23:ca82a3468d27 cannam

* Merge SVN update from default
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 24 Sep 2010 14:17:42 +0100
parents 40f7cfd4df19
children 94944d00e43c
comparison
equal deleted inserted replaced
21:d0cd1f6335a5 23:ca82a3468d27
67 # add then remove 2 attachments to an issue 67 # add then remove 2 attachments to an issue
68 def test_issue_attachements 68 def test_issue_attachements
69 log_user('jsmith', 'jsmith') 69 log_user('jsmith', 'jsmith')
70 set_tmp_attachments_directory 70 set_tmp_attachments_directory
71 71
72 put 'issues/1/edit', 72 put 'issues/1',
73 :notes => 'Some notes', 73 :notes => 'Some notes',
74 :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain'), 'description' => 'This is an attachment'}} 74 :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain'), 'description' => 'This is an attachment'}}
75 assert_redirected_to "issues/1" 75 assert_redirected_to "issues/1"
76 76
77 # make sure attachment was saved 77 # make sure attachment was saved