プロジェクト

全般

プロフィール

Vote #80787

完了

Skip thumbnail tests if ImageMagick convert command is not available

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
30
version_id:
152
issue_org_id:
33226
author_id:
123153
assigned_to_id:
332
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Failure:
IssuesControllerTest#test_show_with_thumbnails_enabled_should_display_thumbnails [/test/functional/issues_controller_test.rb:2533]:
Expected at least 1 element matching "div.thumbnails", found 0..
Expected 0 to be >= 1.
...

it shouldn't fail if ImageMagick isn't available


journals

--------------------------------------------------------------------------------
Thank you for the fix. I found that @gantts_controller_test.rb@ should also be fixed. Attached the updated patch.

<pre>
Error:
GanttsControllerTest#test_gantt_should_export_to_png:
MiniMagick::Error: You must have ImageMagick or GraphicsMagick installed
lib/redmine/helpers/gantt.rb:381:in `to_image'
app/controllers/gantts_controller.rb:44:in `block (2 levels) in show'
app/controllers/gantts_controller.rb:42:in `show'
lib/redmine/sudo_mode.rb:64:in `sudo_mode'
test/functional/gantts_controller_test.rb:160:in `test_gantt_should_export_to_png'

bin/rails test test/functional/gantts_controller_test.rb:159
</pre>

--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------


related_issues

relates,Closed,1006,Display thumbnails of attached images

Admin Redmine さんが3年以上前に更新

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0