@@ -102,7 +102,7 class IssuesControllerTransactionTest < ActionController::TestCase | |||||
102 |
|
102 | |||
103 | assert_response :success |
|
103 | assert_response :success | |
104 | assert_template 'edit' |
|
104 | assert_template 'edit' | |
105 |
attachment = Attachment. |
|
105 | attachment = Attachment.order('id DESC').first | |
106 | assert_tag 'input', :attributes => {:name => 'attachments[p0][token]', :value => attachment.token} |
|
106 | assert_tag 'input', :attributes => {:name => 'attachments[p0][token]', :value => attachment.token} | |
107 | assert_tag 'input', :attributes => {:name => 'attachments[p0][filename]', :value => 'testfile.txt'} |
|
107 | assert_tag 'input', :attributes => {:name => 'attachments[p0][filename]', :value => 'testfile.txt'} | |
108 | end |
|
108 | end | |
@@ -189,7 +189,7 class IssuesControllerTransactionTest < ActionController::TestCase | |||||
189 | assert_response 302 |
|
189 | assert_response 302 | |
190 | issue = Issue.find(1) |
|
190 | issue = Issue.find(1) | |
191 | assert_equal 4, issue.fixed_version_id |
|
191 | assert_equal 4, issue.fixed_version_id | |
192 |
journal = Journal. |
|
192 | journal = Journal.order('id DESC').first | |
193 | assert_equal 'overwrite_conflict_resolution', journal.notes |
|
193 | assert_equal 'overwrite_conflict_resolution', journal.notes | |
194 | assert journal.details.any? |
|
194 | assert journal.details.any? | |
195 | end |
|
195 | end | |
@@ -210,7 +210,7 class IssuesControllerTransactionTest < ActionController::TestCase | |||||
210 | assert_response 302 |
|
210 | assert_response 302 | |
211 | issue = Issue.find(1) |
|
211 | issue = Issue.find(1) | |
212 | assert_nil issue.fixed_version_id |
|
212 | assert_nil issue.fixed_version_id | |
213 |
journal = Journal. |
|
213 | journal = Journal.order('id DESC').first | |
214 | assert_equal 'add_notes_conflict_resolution', journal.notes |
|
214 | assert_equal 'add_notes_conflict_resolution', journal.notes | |
215 | assert journal.details.empty? |
|
215 | assert journal.details.empty? | |
216 | end |
|
216 | end |
General Comments 0
You need to be logged in to leave comments.
Login now