@@ -87,7 +87,7 class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base | |||
|
87 | 87 | token = xml['upload']['token'] |
|
88 | 88 | assert_not_nil token |
|
89 | 89 | |
|
90 |
attachment = Attachment. |
|
|
90 | attachment = Attachment.order('id DESC').first | |
|
91 | 91 | assert_equal token, attachment.token |
|
92 | 92 | assert_nil attachment.container |
|
93 | 93 | assert_equal 2, attachment.author_id |
@@ -112,7 +112,7 class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base | |||
|
112 | 112 | token = json['upload']['token'] |
|
113 | 113 | assert_not_nil token |
|
114 | 114 | |
|
115 |
attachment = Attachment. |
|
|
115 | attachment = Attachment.order('id DESC').first | |
|
116 | 116 | assert_equal token, attachment.token |
|
117 | 117 | end |
|
118 | 118 |
General Comments 0
You need to be logged in to leave comments.
Login now