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