Skip thumbnail tests if ImageMagick convert command is not available (#33226).

Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@19640 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-04-02 08:04:15 +00:00
parent 0f3cece5bb
commit a24834fa77
5 changed files with 5 additions and 1 deletions

View File

@@ -444,6 +444,7 @@ class AttachmentTest < ActiveSupport::TestCase
end
def test_thumbnailable_should_be_true_for_images
skip unless convert_installed?
assert_equal true, Attachment.new(:filename => 'test.jpg').thumbnailable?
end