comparison test/integration/.svn/text-base/issues_test.rb.svn-base @ 22:40f7cfd4df19

* Update to SVN trunk rev 4173
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 24 Sep 2010 14:06:04 +0100
parents 513646585e45
children 94944d00e43c
comparison
equal deleted inserted replaced
14:1d32c0a0efbf 22:40f7cfd4df19
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