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